Re: dlsym(RTLD_NEXT) and weak symbols

From: Maxim Sobolev <sobomax_at_FreeBSD.org>
Date: Wed, 08 Oct 2008 17:59:01 -0700
Alexander Kabaev wrote:
> On Wed, 08 Oct 2008 15:33:41 -0700
> Maxim Sobolev <sobomax_at_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
Received on Wed Oct 08 2008 - 22:59:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:36 UTC