Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Oct 2015 17:11:00 -0700
From:      NGie Cooper <yaneurabeya@gmail.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Bryan Drewery <bdrewery@FreeBSD.org>, Garrett Cooper <ngie@FreeBSD.org>, src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   Re: 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...
Message-ID:  <563611E3-99A3-4FEE-A83A-7E64B2CC00DE@gmail.com>
In-Reply-To: <B42ED4B5-6174-43BF-85E3-8A2E57B41986@bsdimp.com>
References:  <201510172138.t9HLcwiF095174@repo.freebsd.org> <5622D147.7050701@FreeBSD.org> <542455B8-3355-497A-B667-AF72C197B9A4@gmail.com> <5622D243.5020603@FreeBSD.org> <E18978A9-A86A-4F06-A07C-D79CD91A4F9A@gmail.com> <5622D517.5000606@FreeBSD.org> <B42ED4B5-6174-43BF-85E3-8A2E57B41986@bsdimp.com>

index | next in thread | previous in thread | raw e-mail


> On Oct 17, 2015, at 17:04, Warner Losh <imp@bsdimp.com> wrote:
> 
>> On Oct 17, 2015, at 5:09 PM, Bryan Drewery <bdrewery@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

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?563611E3-99A3-4FEE-A83A-7E64B2CC00DE>