|
From: | Ken Raeburn |
Subject: | Re: TLS support on NetBSD |
Date: | Thu, 29 Oct 2009 15:18:17 -0400 |
On Oct 23, 2009, at 19:40, Greg Troxel wrote:
Thanks - I think there is actually no tls support yet.I will take a look at the autoconf issue when I have time - but I'm verybusy at work this week.
I just took a little bit of a look... on my NetBSD 5.0.1 x86 system, the __thread support simply uses the %gs segment register, but the kernel or library or whatever doesn't seem to have set it up properly. So it compiles and links just fine for me, but crashes when running.
I think the autoconf test is thus going to have to run a test program to see if __thread is supported, which means it won't be friendly to cross-compilation setups. (I still don't have all the dependencies built for NetBSD, so no working patch.) Or, we could hard-code knowledge about systems where compiling and linking work but execution fails; that's generally frowned upon....
Ken
[Prev in Thread] | Current Thread | [Next in Thread] |