bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/26972] R_X86_64_TLSDESC_CALL/R_X86_64_GOTPC32_TLSDESC don't su


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gold/26972] R_X86_64_TLSDESC_CALL/R_X86_64_GOTPC32_TLSDESC don't support IBT
Date: Sun, 29 Nov 2020 19:42:24 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26972

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4bccc875d2ba5cf8f8484ae2aa83d0f1b7115f74

commit 4bccc875d2ba5cf8f8484ae2aa83d0f1b7115f74
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Nov 29 11:36:13 2020 -0800

    gold: Add endbr64 to IBT TLSDESC PLT entry

    Gold generates:

     c10:   ff 35 da 23 00 00       push   0x23da(%rip)        # 2ff0
<_GLOBAL_OFFSET_TABLE_+0x8>
     c16:   f2 ff 25 c3 23 00 00    bnd jmp *0x23c3(%rip)        # 2fe0
<_DYNAMIC+0x260>
     c1d:   0f 1f 00                nopl   (%rax)

    for IBT TLSDESC PLT entry which misses endbr64.  Add endbr64 to generate:

     c10:   f3 0f 1e fa             endbr64
     c14:   ff 35 d6 23 00 00       push   0x23d6(%rip)        # 2ff0
<_GLOBAL_OFFSET_TABLE_+0x8>
     c1a:   ff 25 c0 23 00 00       jmp    *0x23c0(%rip)        # 2fe0
<_DYNAMIC+0x260>

            PR ld/26972
            * x86_64.cc (Output_data_plt_x86_64_ibt::tlsdesc_plt_entry): Add
            endbr64.
            (Output_data_plt_x86_64_ibt::do_fill_tlsdesc_entry): Adjusted.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]