From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 7 06:06:47 2005 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADF4D16A41F for ; Wed, 7 Sep 2005 06:06:47 +0000 (GMT) (envelope-from marcus@FreeBSD.org) Received: from creme-brulee.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4479B43D45 for ; Wed, 7 Sep 2005 06:06:47 +0000 (GMT) (envelope-from marcus@FreeBSD.org) Received: from shumai.marcuscom.com (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.13.4/8.13.4) with ESMTP id j8766uFZ068508 for ; Wed, 7 Sep 2005 02:06:56 -0400 (EDT) (envelope-from marcus@FreeBSD.org) From: Joe Marcus Clarke To: freebsd-hackers@FreeBSD.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-/MZE05Vs1ad7cXEDMoiD" Organization: FreeBSD, Inc. Date: Wed, 07 Sep 2005 02:06:44 -0400 Message-Id: <1126073204.18969.15.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Cc: Subject: Why is our symbol lookup the way it is? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2005 06:06:47 -0000 --=-/MZE05Vs1ad7cXEDMoiD Content-Type: text/plain Content-Transfer-Encoding: quoted-printable This is something that's been bothering me for a while, ever since I fixed the symbol conflicts in Mozilla with -Bsymbolic. Why do we not look in the referencing object first by default? I'm referring to the great comments in the symlook_default() function in rtld.c. We only check the referencing object first when -Bsymbolic is passed to the linker. The main reason I'm asking is that I just tracked down another symbol conflict in a dlopen'd library that plagues us but not Linux. I assume there was a good reason for resolving symbols in the order we do, but admittedly, I don't understand enough of the linker to know what it is. Thanks. Joe --=20 Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome --=-/MZE05Vs1ad7cXEDMoiD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDHoN0b2iPiv4Uz4cRAjrBAKCtp6x+tCdHiwA3cXWvS6m0yntoSwCggCCi cjRjzasFNzs25b/TqyKLG9E= =e+V0 -----END PGP SIGNATURE----- --=-/MZE05Vs1ad7cXEDMoiD--