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

next in thread | previous in thread | raw e-mail | index | archive | help
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>
> 
> I do not think your patch is completely correct. How about this one
> instead: 

I see where you go, but I disagree. IMHO symbols in the ld-elf.so.1 
should be searched even if there is no matching weak symbol found in 
other libraries. Technically, nothing says that the libc should have 
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.

-Maxim



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