bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/24836] --as-needed leaves unused direct dependencies


From: amodra at gmail dot com
Subject: [Bug ld/24836] --as-needed leaves unused direct dependencies
Date: Mon, 29 Jul 2019 06:07:03 +0000

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

--- Comment #7 from Alan Modra <amodra at gmail dot com> ---
> Maybe garbage collection (-Wl,--gc-sections) happens after
> effect of "-Wl,--as-needed"?

It does, and that might be why you have shared libraries seen as needed before
garbage collection runs.  If you link with -Wl,-Map,mapfilename then inspecting
mapfilename will show you which symbol caused each shared library to be needed.

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