problem when pthread_* functions are invoked from dynamiclibrary

Mike Frysinger vapier at gentoo.org
Mon Dec 5 14:02:06 UTC 2005


On Mon, Dec 05, 2005 at 02:39:48PM +0100, Joakim Tjernlund wrote:
> > > > although, if i declare the extern weak pthread function as
> > > > attribute_hidden, it shrinks it considerably, i'm just not
> > > > sure if this is correct
> > > 
> > > Don't think thats correct. What does readelf -a say about the hidden
> > > weak functions?
> > 
> > I am interested if all __libc_X in libc.so could be made 
> > hidden weak, so what should readelf -a reveal about them to
> > pthread to overwrite them?
> 
> Not sure, but it has to be exported. I am not sure what hidden does to
> declarations at all.

the __libc_pthread_X are for internal libc usage only and should
never be used by anyone else
-mike



More information about the uClibc mailing list