About the armlink behavior when the linked object is not explicitly used by the main executable
Posted
by
thincal
on Stack Overflow
See other posts from Stack Overflow
or by thincal
Published on 2012-06-29T03:11:50Z
Indexed on
2012/06/29
3:15 UTC
Read the original article
Hit count: 144
I want to link the example with liba.so, and also the example is NOT using anything inside the liba.so ...
armlink --userlibpath /mylib/lib liba.so --fpic --shared -o example main.o demo.o
So finally I got nothing from: readelf -d example | grep NEEDED, it seems that armlink do some optimization to remove the linked library which is not really used by the "example" ? If I want to let the liba.so be always linked into example, what need I do with armlink options ?
Any information is very appreciated ;)
© Stack Overflow or respective owner