[uClibc] Difference between glibc vs. uClibc ldso.

Joakim Tjernlund joakim.tjernlund at lumentis.se
Fri Jun 18 07:10:34 UTC 2004


> Joakim Tjernlund wrote:
> > Glibc ldso symbol lookup code differs when matching symbols.
> > The diffrence is this:
> > 
> > Glibc: if (ref != sym && strcmp(strtab + sym->st_name, name))
> > Uclibc: if (strcmp(strtab + sym->st_name, name))
> 
> Seems a bit too cryptic for my liking.
> Where in glibc ? I could not find this in the elf/* files in 
> glibc.Which file / function /version do you refer to ?Maybe 
> someone can help you better then .

File in glibc is libc/elf/do-lookup.h and in uClibc it is
ldso/ldso/dl-hash.c, function _dl_find_hash().

Thanks for pointing this out.

 Jocke
> 
> > 
> > uClibc misses the ref != sym part. As far as I can tell this is used by
> > glibc ldso to make sure that the symbol beeing looked up won't match itself.
> > 
> > Does not uClibc ldso need this as well?
> > 
> >     Jocke




More information about the uClibc mailing list