bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21988] [2.29 Regression] ld shows an assertion failure for missi


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/21988] [2.29 Regression] ld shows an assertion failure for missing symbols (powerpc64le-linux-gnu)
Date: Tue, 22 Aug 2017 23:36:06 +0000

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

--- Comment #2 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=46434633f9cee98afac1cf945ad00c9d4fdf5a4d

commit 46434633f9cee98afac1cf945ad00c9d4fdf5a4d
Author: Alan Modra <address@hidden>
Date:   Wed Aug 23 08:58:08 2017 +0930

    Make undefined symbols in allocate_dynrelocs dynamic

    ..if they have dynamic relocs.  An undefined symbol in a PIC object
    that finds no definition ought to become dynamic in order to support
    --allow-shlib-undefined, but there is nothing in the generic ELF
    linker code to do this if the reference isn't via the GOT or PLT.  (An
    initialized function pointer is an example.)  So it falls to backend
    code to ensure the symbol is made dynamic.

        PR 21988
        * elf64-ppc.c (ensure_undef_dynamic): Rename from
        ensure_undefweak_dynamic.  Handle undefined too.
        * elf32-ppc.c (ensure_undef_dynamic): Likewise.
        * elf32-hppa.c (ensure_undef_dynamic): Likewise.
        (allocate_dynrelocs): Discard undefined non-default visibility
        relocs first.  Make undefined syms dynamic.  Tidy goto.

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