[prev in list] [next in list] [prev in thread] [next in thread]
List: netbsd-tech-toolchain
Subject: Re: TLS support?
From: Matt Fleming <matt () console-pimps ! org>
Date: 2009-05-08 6:02:40
Message-ID: 20090508060240.GA26689 () console-pimps ! org
[Download RAW message or body]
On Wed, May 06, 2009 at 11:30:42PM -0700, 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.
>
This is on my TODO list. Changes are needed to the dynamic linker and
libpthread to make it work.
I'm not really an x86 guy, but I think that with Andrew's recent
cpu_lwp_setprivate() changes all the x86 support required from the
kernel is present.
If you're interested in helping out let me know!
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic