resolving weak symbols.
Tom Kacvinsky
tkacvins@gmail.com
Thu Mar 28 22:58:36 GMT 2024
HI,
Support I have a static archive libfoo.a that has a weak sym, call it quux.
And the link line I have is
gcc -o foo -L. -lfoo -Wl,--as-needed -lbar -lbaz
Where libbar.so and libbaz.so also have the weak symbol quux.
Then the executable foo has a dynamic dependency on both libbar.so _and_
libbaz.so.
Is this expected behavior? Is there a way of forcing exactly one of
libfoo.so and libbaz.so to be used?
Thanks,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20240328/a6c96afe/attachment.htm>
More information about the Binutils
mailing list