Pthread patches for TLS

Doug Rabson dfr at nlsystems.com
Fri Aug 6 06:15:28 PDT 2004


On Fri, 2004-08-06 at 14:03, David Xu wrote:
> Doug Rabson wrote:
> 
> >>  http://docs.freebsd.org/mail/archive/2003/freebsd-arch/20030330.freebsd-arch.html
> >>
> >>Look for "Not providing static libraries", Mar 26, 2003, freebsd-arch
> >>
> >>Note that Solaris doesn't have static thread libraries.  I'm not sure about
> >>Linux...
> >>    
> >>
> >
> >I thought I was in luck when I noticed the AT_PHDR entry but
> >unfortunately its NULL in static programs. I reckon I can fix that in
> >the kernel since the phdrs are definately inside the first load segment.
> >
> >  
> >
> I hope the current tls structure will be kept both in rtld and libpthread,
> I have already done tls debugger support locally this afternoon.
> 

Static support won't affect how libpthread works at all. All that will
happen is that the stub _rtld_allocate_tls() in libc will provide the
TLS support for static binaries.




More information about the freebsd-threads mailing list