bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/27311] ld.bfd (symbol from plugin): undefined reference to symbo


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/27311] ld.bfd (symbol from plugin): undefined reference to symbol since b1a92c635c1ec10fd703302ce1fc4ab3a8515a04
Date: Wed, 03 Feb 2021 08:13:07 +0000

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

--- Comment #13 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The binutils-2_36-branch branch has been updated by Alan Modra
<amodra@sourceware.org>:

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

commit d2ea9f3a70a2d44cae20ab43609a71f1e616b43a
Author: Alan Modra <amodra@gmail.com>
Date:   Tue Feb 2 15:05:14 2021 +1030

    PR27311, ld.bfd (symbol from plugin): undefined reference

    A default versioned symbol definition in a shared library is
    overridden by an unversioned definition in a regular object file, and
    thus should not be reason to make an as-needed library needed.

    bfd/
            PR 27311
            * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
            libraries when H is an indirect symbol after calling
            _bfd_elf_add_default_symbol.
    ld/
            * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
            Link with --as-needed.

            * testsuite/ld-plugin/pr27311.d,
            * testsuite/ld-plugin/pr27311.ver,
            * testsuite/ld-plugin/pr27311a.c,
            * testsuite/ld-plugin/pr27311b.c,
            * testsuite/ld-plugin/pr27311c.c: New testcase.
            * testsuite/ld-plugin/lto.exp: Run it.  Correct PR14918 and
            PR12982 entries.

    (cherry picked from commit 9918bff7cf2a566aaa2036d2242a61c140652dc7)
    (cherry picked from commit 6955136728a68365bbb5e6e1327dff1654b2a0ca)
    (cherry picked from commit f01fb44c0621b064996493bb5acd5077646ea84e)

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