[uClibc] ldso bug in uclibc?

Andrew de Quincey adq_dvb at lidskialf.net
Mon Nov 8 20:23:46 UTC 2004


On Monday 08 Nov 2004 17:27, Joakim Tjernlund wrote:
> > Quick question - from my reading of the code, we have:
> >
> > One instance of struct elf_resolve* for each shared object.
>
> Yes, this is kept in _dl_loaded_modules list.
>
> > Multiple instances of struct elf_dyn*, one created each time the shared
> > object is loaded with _dl_load_elf_shared_library(). Each of these points
> > at the elf_resolve*.
>
> Yes, _dl_symbol_tables is the global list. Each
> _dl_load_elf_shared_library() will add to this list. dlopen creates yet
> another list used by dlsym()
>
> > If so, this makes things easier... I don't need to maintain lists of
> > groups - I just need to keep a groupid in the elf_dyn* - since we have an
> > elf_dyn* per load already, membership of multiple groups is done
> > automatically.

Hi - here's a first version of the patch. It isn't working yet - the second 
dlopened shared object fails to find symbols - but shows what I'm attempting. 
The more people working on it, the better IMO.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uclibc-local-1.patch
Type: text/x-diff
Size: 15402 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20041108/767eb8c9/attachment.bin 


More information about the uClibc mailing list