Updated ARM NPTL patch

Joakim Tjernlund joakim.tjernlund at transmode.se
Sat Feb 17 10:22:45 UTC 2007


[SNIP]

> > Hi Jocke,
> > thanks for your reply!
> > 
> > I tried this solution firstly (to avoid the check every time
> > _dl_load_shared_library is invoked, even if only in the 
> static build),
> > but it doesn't work because passing a valid rpnt
> > pointer to _dl_load_shared_library, it will be used to 
> attach a newly
> > created dyn_elf struct.
> > So you will have two dyn_elf struct with one tpnt struct.
> > In the shared case, the ld.so initializes the _dl_symbol_tables for
> > the main application (using the app_tpnt), and then each 
> other DSO (as
> > dependencies or "dlopened") will be attached to the 
> _dl_symbol_tables
> > linked list.
> > Do you agree?
> 
> Agreed, however I wonder if there are cases where you can search for
> symbols in static application as well? I can't remeber and 
> have no time
> to research this now, but if this is possible you should try to stick
> the main app into _dl_symbol_tables as its first entry.
> 
> If not your patch is fine and can be applied as is.
> 
>   Jocke

I applied your patch since I could not make my idea work on glibc
either so I guess this is not a real problem/needed feature.

 Jocke




More information about the uClibc mailing list