Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Oct 2008 21:10:05 -0400
From:      Alexander Kabaev <kabaev@gmail.com>
To:        Maxim Sobolev <sobomax@FreeBSD.org>
Cc:        "current@freebsd.org" <current@FreeBSD.org>
Subject:   Re: dlsym(RTLD_NEXT) and weak symbols
Message-ID:  <20081008211005.0fcb6442@kan.dnsalias.net>
In-Reply-To: <48ED5755.3000601@FreeBSD.org>
References:  <48ED27EA.9020407@FreeBSD.org> <48ED3545.6030609@FreeBSD.org> <20081008192905.0b75b0a6@kan.dnsalias.net> <48ED5755.3000601@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/z22Pe9KDY2i=KhFyUazzYb0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Wed, 08 Oct 2008 17:59:01 -0700
Maxim Sobolev <sobomax@FreeBSD.org> wrote:

> Alexander Kabaev wrote:
> > On Wed, 08 Oct 2008 15:33:41 -0700
> > Maxim Sobolev <sobomax@FreeBSD.org> wrote:
> >> The following patch fixes the issue for me:
> >>
> > <SKIP>
> >=20
> > I do not think your patch is completely correct. How about this one
> > instead:=20
>=20
> I see where you go, but I disagree. IMHO symbols in the ld-elf.so.1=20
> should be searched even if there is no matching weak symbol found in=20
> other libraries. Technically, nothing says that the libc should have=20
> those weak symbols for dlopen and friends and also application can
> only be linked to ld-elf.so.1, not libc at all, and still
> dlsym("dlopen") should work.
>=20
> -Maxim

Read the patch again please. You do not see where I am going :)

We need to grab first non-weak symbol that matches or first weak symbol
if no non-weak alternatives are found.
=20

--=20
Alexander Kabaev

--Sig_/z22Pe9KDY2i=KhFyUazzYb0
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iD8DBQFI7VntQ6z1jMm+XZYRArTeAJ91/SxJzyowkKNxU6xLE9a8b7BEqQCfQdg+
TSMqGWj/9RkRIfnh9qJWruw=
=NcP4
-----END PGP SIGNATURE-----

--Sig_/z22Pe9KDY2i=KhFyUazzYb0--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081008211005.0fcb6442>