shared libraries linked into executable when they are not neccessary
Tom Kacvinsky
tkacvins@gmail.com
Thu Oct 23 13:03:52 GMT 2025
Hi,
Not sure if this is the right list for asking this question. If it's not,
please point me to the right list.
I am confused as to why a shared library - which isn't needed by
an executable - is linked in.
I am using binutils 2.39
The link line contains
-fuse-ld=gold -Wl,--as-needed -Wl,-Map,map.txt -Wl,--cref
When I look at map.txt, I cannot find why the shared library is
necessary. What should I look for?
This is happening with binutils 2.45 as well.
Thanks,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20251023/3fed4218/attachment.htm>
More information about the Binutils
mailing list