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: Tue, 15 Sep 2020 00:58:07 +0000

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

--- Comment #42 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Hans-Peter Nilsson <hp@sourceware.org>:

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

commit 4a8f181d196f85ca153fe51ca6bb40942e0e1ed7
Author: Hans-Peter Nilsson <hp@bitrange.com>
Date:   Tue Sep 15 02:57:39 2020 +0200

    CRIS: fix PR ld/26589, a missing NULL check in fix for PR ld/22269

    Not sure why there wasn't a NULL check in the ld/22269 patch
    (e01c16a8) at the time, as there was one for the corresponding patch
    to elf32-m68k.c (5056ba1d).

    Incidentally, I had missed that in 2017, as a prerequisite for the
    ld/22269 series, the check_relocs function finally were made "safe"!
    (I.e. the number of references and symbol types are final, garbage
    collection done, so port-specific accounting can be made sanely.)

    Committed.

    bfd:
            PR ld/26589
            * elf32-cris.c (cris_elf_check_relocs): Add missing NULL check
            on argument before calling UNDEFWEAK_NO_DYNAMIC_RELOC.

    ld:
            PR ld/26589
            * testsuite/ld-elf/pr26589.d, testsuite/ld-elf/locref3.s: New test.

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