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>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Oct 17, 2015, at 17:04, Warner Losh <imp@bsdimp.com> wrote: >=20 >> On Oct 17, 2015, at 5:09 PM, Bryan Drewery <bdrewery@FreeBSD.org> = wrote: =E2=80=A6 >> If two libraries provide the same symbols. For example r265003. = Easily >> sen with libmd and libcrypto too if I remember right. >=20 > 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=E2=80=99t get pulled in from the .a, so the symbol won=E2=80=99t = get resolved. This is very definitely true for static libraries. The = rules for dynamic are different, but then Bryan=E2=80=99s example = applies. >=20 > Order matters. Don=E2=80=99t alphabetize just for =E2=80=9Cneatness=E2=80= =9D sake. Ok. I thought nm | lorder would have properly handled this, but I=E2=80=99= ll revert the reordering part. Thanks, -NGie=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?563611E3-99A3-4FEE-A83A-7E64B2CC00DE>