svn commit: r289471 - in user/ngie/bug203673: bin/df bin/ls bin/ps lib/libxo lib/libxo/tests lib/libxo/tests/encoder libexec/ftpd sbin/savecore share/mk usr.bin/iscsictl usr.bin/netstat usr.bin/pro...
NGie Cooper
yaneurabeya at gmail.com
Sun Oct 18 00:11:02 UTC 2015
> On Oct 17, 2015, at 17:04, Warner Losh <imp at bsdimp.com> wrote:
>
>> On Oct 17, 2015, at 5:09 PM, Bryan Drewery <bdrewery at FreeBSD.org> wrote:
…
>> If two libraries provide the same symbols. For example r265003. Easily
>> sen with libmd and libcrypto too if I remember right.
>
> Also consider libA and libB. Lib B calls something in lib A. If nothing in the main program calls it, and it is in its own .o, then that .o won’t get pulled in from the .a, so the symbol won’t get resolved. This is very definitely true for static libraries. The rules for dynamic are different, but then Bryan’s example applies.
>
> Order matters. Don’t alphabetize just for “neatness” sake.
Ok. I thought nm | lorder would have properly handled this, but I’ll revert the reordering part.
Thanks,
-NGie
More information about the svn-src-user
mailing list