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: Thu, 05 Jul 2018 11:35:39 +0000

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

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

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

commit 2c4995ba2b4b1182ce3b228152f697c55a0ff9fb
Author: H.J. Lu <address@hidden>
Date:   Thu Jul 5 04:33:11 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.

    (cherry picked from commit 94d401b8b88a76b1372ce44e805516756a4f737b)

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