bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/25056] ld fails to bind DTPMOD at link time for pie on arm


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/25056] ld fails to bind DTPMOD at link time for pie on arm
Date: Thu, 10 Oct 2019 11:29:10 +0000

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

--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The binutils-2_33-branch branch has been updated by Szabolcs Nagy
<address@hidden>:

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

commit b094948c0943c996460cbc9ab3c14207dc520445
Author: Szabolcs Nagy <address@hidden>
Date:   Wed Oct 2 19:46:46 2019 +0100

    [PR ld/22263][PR ld/25056] arm: Avoid dynamic TLS relocs in PIE

    Dynamic relocs are only needed in an executable for TLS symbols if
    those are defined in an external module and even then TLS access
    can be relaxed to use IE model instead of GD.

    Several bfd_link_pic checks are turned into bfd_link_dll checks
    to fix TLS handling in PIE, for the same fix some other targets
    used !bfd_link_executable checks, but that includes relocatable
    objects so dll seems safer (in most cases either should work, since
    dynamic relocations are not applied in relocatable objects).

    On arm* fixes
    FAIL: Build pr22263-1

    bfd/

        PR ld/22263
        PR ld/25056
        * elf32-arm.c (elf32_arm_tls_transition): Use bfd_link_dll instead of
        bfd_link_pic for TLS checks.
        (elf32_arm_final_link_relocate): Likewise.
        (allocate_dynrelocs_for_symbol): Likewise.

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