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: Thu, 22 May 2025 04:10:03 +0000

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

--- Comment #8 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The binutils-2_43-branch branch has been updated by H.J. Lu
<hjl@sourceware.org>:

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

commit 3e4052fb33871987a087fb6025c8e7ab27f01d01
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>
    (cherry picked from commit c9652a062fe1a44ed1dd7eae53e847a85b8911e5)

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