Are my libs correct?

Ed W lists at wildgooses.com
Thu Jul 2 18:53:03 UTC 2009


Mike Frysinger wrote:
> On Thursday 02 July 2009 13:04:02 Ed W wrote:
>   
>> Hi, I'm using a gentoo uclibc system and just updated it to 0.9.30.1
>>
>> I notice a curious feature of binaries which is causing problems with
>> some other gentoo ebuilds.
>>
>> Essentially if I use readelf -d, this gives me (amongst other things):
>>
>> 0x00000001 (NEEDED)                     Shared library: [libc.so.0]
>> 0x00000001 (NEEDED)                     Shared library: [ld-uClibc.so.0]
>>
>> ...however, other uclibc users don't get the second line
>>
>> Can anyone shed some light on the second line (ld-uClibc.so.0) and
>> whether it's correct, due to some facet of my toolchain and whether it
>> represents a problem I should resolve?
>>     
>
> the answer is "it depends".  it could be correct, and it could be wrong.  a 
> few symbols are provided by the loader and that is why the C library linker 
> script reads "AS_NEEDED ( ld-uClibc.so.0 )".  glibc operates the same way.
> -mike
>   

Hi Mike

I filed a bug here (and suggested patch):
http://bugs.gentoo.org/show_bug.cgi?id=275725

I guess I'm just trying to get to the bottom of whether my toolchain is 
incorrect right now or whether this is a valid thing to fix in the 
gentoo sandbox configure script?

Are you able to repro my scenario?  Any thoughts?

Cheers

Ed W


More information about the uClibc mailing list