bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/32017] Linker failed to check invalid TLS sequence


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/32017] Linker failed to check invalid TLS sequence
Date: Wed, 28 Aug 2024 12:59:35 +0000

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

--- Comment #7 from Sourceware Commits <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=c9652a062fe1a44ed1dd7eae53e847a85b8911e5

commit c9652a062fe1a44ed1dd7eae53e847a85b8911e5
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Aug 28 05:03:04 2024 -0700

    x86: Report expected register for elf_x86_tls_error_indirect_call

    Since R_386_TLS_DESC_CALL can only be used with

            call    *variable@TLSCALL(%eax)

    and R_X86_64_TLSDESC_CALL can only be used with

            call    *variable@TLSCALL(%rax)

    update TLS transition error report to display the expected register in
    indirect CALL.

    bfd/

            PR ld/32017
            * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Initialize
            the ax_register field.
            (_bfd_x86_elf_link_report_tls_transition_error): Report the
            expected register in elf_x86_tls_error_indirect_call error.
            * elfxx-x86.h (elf_x86_link_hash_table): Add ax_register.

    ld/

            PR ld/32017
            * testsuite/ld-i386/tlsgdesc2.d: Updated.
            * testsuite/ld-i386/tlsgdesc2.s: Change jmp to call via ECX.
            * testsuite/ld-x86-64/tlsdesc4.d: Updated.
            * testsuite/ld-x86-64/tlsdesc4.s: Change jmp to call via RCX.

    Signed-off-by: H.J. Lu <hjl.tools@gmail.com>

-- 
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]