bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/20070] LLVM gold plugin(LLVMgold.so) report Unexpected resolutio


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/20070] LLVM gold plugin(LLVMgold.so) report Unexpected resolution failure on ld when LTO, but pass on gold
Date: Thu, 12 May 2016 23:52:06 +0000

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

--- 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=3355cb3b643bd50aafae768e7cf990d4bec40fe1

commit 3355cb3b643bd50aafae768e7cf990d4bec40fe1
Author: H.J. Lu <address@hidden>
Date:   Thu May 12 16:50:34 2016 -0700

    Handle symbols defined/referenced only within IR

    The plugin is called to claim symbols in an archive element from
    plugin_object_p.  But those symbols aren't needed to create output.
    They are defined and referenced only within IR.  get_symbols should
    return resolution based on IR symbol kinds.

        PR ld/20070
        * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug4.la.
        (libldtestplug4_la_SOURCES): New.
        (libldtestplug4_la_CFLAGS): Likewise.
        (libldtestplug4_la_LDFLAGS): Likewise.
        * Makefile.in: Regenerated.
        * plugin.c (get_symbols): Return resolution based on IR symbol
        kinds for symbols defined/referenced only within IR.
        * testplug4.c: New file.
        * ld/testsuite/ld-plugin/pr20070.d: Likewise.
        * ld/testsuite/ld-plugin/pr20070a.c: Likewise.
        * ld/testsuite/ld-plugin/pr20070b.c: Likewise.
        * testsuite/ld-plugin/plugin.exp (plugin4_name): New.
        (plugin4_path): Likewise.
        Add a test for ld/20070.

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