tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: TLS support?




On May 6, 2009, at 11:30 PM, Phil Nelson wrote:

Hi,

I recently ran into some code using the __thread qualifier and it appears that it is not supported on at least the i386 platform. Using that in a shared library generated an undefined ___tls_get_addr() call and just using it in
a simple program with pthreads causes a seg fault.

I was wondering if anyone knew the state of TLS support and/or what it
would take to get it fully supported.

At the very least, someone needs to add the necessary relocations to ld.elf_so.


  Thanks.
--Phil

--
Phil Nelson (phil at cs.wwu.edu) http://www.cs.wwu.edu/nelson
NetBSD: http://www.NetBSD.org  Coda: http://www.coda.cs.cmu.edu


-- thorpej



Home | Main Index | Thread Index | Old Index