bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE
Date: Mon, 27 Nov 2017 11:52:14 +0000

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

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

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

commit a377ae2ad683d3c16ae74dba440ee441120a7d8a
Author: Szabolcs Nagy <address@hidden>
Date:   Wed Nov 15 15:56:30 2017 +0000

    [PR ld/22269] aarch64: Handle local undefined weak symbols

    With static pie linking undefined weak symbols are forced to resolve
locally
    to 0, so no GOT setup is needed in elfNN_aarch64_finish_dynamic_symbol,
    which previously failed for these symbols.

    The failure caused the unhelpful error message:
    "ld: final link failed: Nonrepresentable section on output"

    bfd/
        PR ld/22269
        * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Use
        UNDEFWEAK_NO_DYNAMIC_RELOC to avoid dynamic GOT relocs.
        (elfNN_aarch64_allocate_dynrelocs): 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]