bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/23309] ld.bfd -u option to force symbol discards symbol when use


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/23309] ld.bfd -u option to force symbol discards symbol when used with LTO plugin and the symbol has hidden or internal visibility
Date: Wed, 04 Jul 2018 13:30:04 +0000

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

--- Comment #4 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=94d401b8b88a76b1372ce44e805516756a4f737b

commit 94d401b8b88a76b1372ce44e805516756a4f737b
Author: H.J. Lu <address@hidden>
Date:   Wed Jul 4 06:27:58 2018 -0700

    ld: Set non_ir_ref_regular for --undefined SYMBOL

    Set non_ir_ref_regular to TRUE for symbols forced into the output file
    so that they won't be removed by garbage collection with LTO.

        PR ld/23309
        * ldlang.c (insert_undefined): Set non_ir_ref_regular to TRUE.
        * plugin.c (is_visible_from_outside): Don't scan entry_symbol.
        * testsuite/ld-plugin/pr23309.c: New file.
        * testsuite/ld-plugin/pr23309.d: 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]