ld,gold: Need help with --as-needed

Matwey V. Kornilov matwey.kornilov@gmail.com
Sun Oct 6 13:09:29 GMT 2024
вс, 6 окт. 2024 г. в 14:50, Andreas Schwab <schwab@linux-m68k.org>:
>
> On Okt 06 2024, Matwey V. Kornilov wrote:
>
> > Now I would like to know if it is possible to increase the linker
> > verbosity to learn its behaviour on my real sources. I hope this will
> > give me some insights.
>
> For ld.bfd the link map should give the necessary information.

Thanks! But no luck yet. The output refers to the object file where
the library is mentioned and nothing more.

p.s. Also clang/lld managed to remove the SO correctly from the final
ELF, so the SO is really unused.


>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
> "And now for something completely different."



-- 
With best regards,
Matwey V. Kornilov


More information about the Binutils mailing list