From owner-svn-src-user@freebsd.org Sun Oct 18 00:11:02 2015 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95F64A17709 for ; Sun, 18 Oct 2015 00:11:02 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [IPv6:2607:f8b0:400e:c03::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 613DC1CC5; Sun, 18 Oct 2015 00:11:02 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by pacfv9 with SMTP id fv9so56920167pac.3; Sat, 17 Oct 2015 17:11:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=siDuJukrF9+4GTkoHyheOSsIDQ+XBFYi0Bkt6mNKrmY=; b=LmVUyjEQ9mGckQAqh9UxuJgxAcRs2UTCYzaYwlio9Y9nWSXW5Bj04HaMrsXJAAwPmZ /fvm3Ag4UzWY/lbmNVdoHQW1I7K1FDDcN1EHuzBLV48xVhyjIWPwpIQGykBKEgItkEzZ 1HgbOM3Vp6JFBvDhM9bFBfxd3M6+3XMnZcoC83N8eVRrXOLGId6jekx24BBqixgqyYD/ CFawls22YYALSy3EsZnz1Rq+9pMdYkfZ9jgN0oOIh4ixCD7lpTFoCfuLTnKF8yv+2+AY sPcDgM3uwD7awewupNR6cE315n1iZ9Ix13UZOrvKvtWJ9sFgeS2MYWroyh/XiH2AyCfN NxnA== X-Received: by 10.67.15.100 with SMTP id fn4mr26123830pad.120.1445127061948; Sat, 17 Oct 2015 17:11:01 -0700 (PDT) Received: from ?IPv6:2601:601:800:126d:61c1:5eeb:a155:3bc5? ([2601:601:800:126d:61c1:5eeb:a155:3bc5]) by smtp.gmail.com with ESMTPSA id tn2sm2197604pac.0.2015.10.17.17.11.01 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 17 Oct 2015 17:11:01 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) 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... From: NGie Cooper In-Reply-To: Date: Sat, 17 Oct 2015 17:11:00 -0700 Cc: Bryan Drewery , Garrett Cooper , src-committers@freebsd.org, svn-src-user@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <563611E3-99A3-4FEE-A83A-7E64B2CC00DE@gmail.com> References: <201510172138.t9HLcwiF095174@repo.freebsd.org> <5622D147.7050701@FreeBSD.org> <542455B8-3355-497A-B667-AF72C197B9A4@gmail.com> <5622D243.5020603@FreeBSD.org> <5622D517.5000606@FreeBSD.org> To: Warner Losh X-Mailer: Apple Mail (2.2104) X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2015 00:11:02 -0000 > On Oct 17, 2015, at 17:04, Warner Losh wrote: >=20 >> On Oct 17, 2015, at 5:09 PM, Bryan Drewery = 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=