svn commit: branches/uClibc-nptl: ldso/include ldso/ldso libc/misc/pthread etc...
Joakim Tjernlund
joakim.tjernlund at transmode.se
Sun Jan 15 14:49:28 UTC 2006
>
> On Sun, 15 Jan 2006, Joakim Tjernlund wrote:
>
> > >
> > > I have converted almost all weak_alias to strong_alias.
> > > My idea is to mark with weak_alias only those that really
> are needed
> > > to be overwritten by any other (stronger) from another lib. Could
> > > you please provide the list of functions that nptl needs
> weak within
> > > libc?
> > >
> > > Jocke: will this be handled correctly by ldso, or it will
> load the
> > > first found version (e.g the one in libc, despite the weak) ?
> > >
> > > Thanks, Peter
> >
> > ldso will use the one it finds first, weak or strong does
> not matter.
>
> which will be the first in case the app has DT_NEEDED for
> libc.so/libpthread.so, libc.so/ld.so (nptl uses maybe some
> combination w/ librt.so as well)
libs will be loaded in the order they appear in the apps DT_NEEDED list. Here
will libc be the last one and phtread will be before libc.
A little more info about shared libs and load order can be found here:
http://www.caldera.com/developers/gabi/2003-12-17/ch5.dynamic.html#shobj_dependencies
Jocke
More information about the uClibc
mailing list