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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to