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, 30 Oct 2017 00:34:42 +0000

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

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

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

commit d336fa6d820f50235c271ea327fadbf4ff6e1edd
Author: Alan Modra <address@hidden>
Date:   Fri Oct 27 15:04:25 2017 +1030

    Fix hppa-linux pr22269-1 fail

    Adds UNDEFWEAK_NO_DYNAMIC_RELOC in the rest of places needed in this
    file, reduces dynamic relocations in a number of cases, and removes
    some bogus code that was attempting to handle dynamic common symbols
    specially.

        PR 22269
        * elf32-hppa.c (elf32_hppa_check_relocs): Move SEC_ALLOC test to
        ensure non_got_ref is not set due to debug references.
        (elf32_hppa_adjust_dynamic_symbol): Tidy plabel handling.  Use
        SYMBOL_CALLS_LOCAL and UNDEFWEAK_NO_DYNAMIC_RELOC when determining
        need for a plt entry.
        (allocate_dynrelocs): Similarly for got entries.  Tidy code discarding
        dynamic relocs when pic.  Remove bogus code attempting to handle
        commons.
        (elf32_hppa_relocate_section): Similarly.  Delete resolved_to_zero
        and simplify.
        (elf32_hppa_finish_dynamic_symbol): Use UNDEFWEAK_NO_DYNAMIC_RELOC
        and SYMBOL_REFERENCES_LOCAL in GOT handling.

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