bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/26806] Suspected linker bug with LTO


From: hjl.tools at gmail dot com
Subject: [Bug ld/26806] Suspected linker bug with LTO
Date: Thu, 29 Oct 2020 11:43:24 +0000

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amodra at gmail dot com
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
This regression was introduced on purpose by

commit 1e3b96fd6cf0c7d018083994ad951ccf92aba582 (HEAD)
Author: Alan Modra <amodra@gmail.com>
Date:   Fri Sep 4 13:54:21 2020 +0930

    Allow plugin syms to mark as-needed shared libs needed

    We must tell LTO about symbols in all shared libraries loaded.  That
    means we can't load extra shared libraries after LTO recompilation, at
    least, not those that affect the set of symbols that LTO cares about,
    the IR symbols.

    This change will likely result in complaints about --as-needed
    libraries being loaded unnecessarily, but being correct is more
    important than being optimal.  One of the PR15146 tests regresses, and
    while that could be hidden by disabling the missing dso message by
    making it conditional on h->root.non_ir_ref_regular, that would just
    be sweeping a problem under the rug.

users/hjl/pr26530/master branch at

https://gitlab.com/x86-binutils/binutils-gdb/-/commits/users/hjl/pr26530/master

contains patches which fix PR ld/26530 without this regression.

*** This bug has been marked as a duplicate of bug 15146 ***

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