[PATCH] ld: Skip the LTO archive member only for the earlier DSO

Sam James sam@gentoo.org
Wed Apr 9 13:00:18 GMT 2025


Michael Matz <matz@suse.de> writes:

> Hello,
>
> On Tue, 8 Apr 2025, H.J. Lu wrote:
>
>> commit 2707d55e539ef323dd14a1293e762bf3d9739ee7
>> Author: Michael Matz <matz@suse.de>
>> Date:   Mon Mar 31 15:57:08 2025 +0200
>> 
>> skipped the LTO archive member even when the earlier item is also an
>> archive.  Instead, skip the LTO archive member only if the earlier item
>> is a shared library.
>
> Thanks!  Does it also solve the inline testcase I cobbled up in 
>   https://sourceware.org/bugzilla/show_bug.cgi?id=32846#c6
> (that wasn't working even without my patch but is related to the 
> shared vs. static symbols).

That fails still, unfortunately.


More information about the Binutils mailing list