bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/23958] -flto -Wl,--whole-archive causes "multiple definition" er


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/23958] -flto -Wl,--whole-archive causes "multiple definition" errors in elfutils (only for bfd, not gold)
Date: Fri, 07 Dec 2018 23:43:59 +0000

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

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:

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

commit fbcc8bafeb413a111cd3caab39b3ab57d5b8ce93
Author: H.J. Lu <address@hidden>
Date:   Fri Dec 7 15:39:49 2018 -0800

    Override the previous definition from IR object

    Mark the previous definition from IR object as undefined so that the
    generic linker will override it.

    bfd/

        PR ld/23958
        * elflink.c (_bfd_elf_add_default_symbol): Override the previous
        definition from IR object.

    ld/

        PR ld/23958
        * testsuite/ld-plugin/lto.exp: Run PR ld/23958 test.
        * testsuite/ld-plugin/pr23958.c: New file.
        * testsuite/ld-plugin/pr23958.t: 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]