Hi,
Thomas Schwinge, le Wed 07 Mar 2007 10:32:00 +0100, a écrit :
On Wed, Mar 07, 2007 at 03:06:22AM +0100, Samuel Thibault wrote:
Thanks to Barry's long glibc builds, here is at last a patch that builds
a tls/__thread -enabled and working glibc.
Great!
BTW, by "working", I mean that simple programs do work, event with
__thread variables.
Can you comment on the issues mentioned at
<http://savannah.gnu.org/bugs/?17644#comment2>?
Mmm, which issues?
About the glibc-Mach interface, I don't really have any opinion ;
I would just remind that glibc-linux interface uses a generic
set_thread_area() syscall and a newtls parameter to the clone syscall,
but the passed structure is very arch-specific anyway.
About --without-__thread, it seems to work already (it got debugged on
Linux in the meanwhile).
The attached patch may be applied as soon as now, but do _not_ drop
--without-tls and --without-__thread yet, because hurd's libpthread.so
doesn't initialize TLS yet, and hence that would break all multithreaded
applications. I'm now working on the Hurd part, I'll mail the bug when
it is uploaded.
Here is what Roland once wrote:
<http://lists.gnu.org/archive/html/hurd-devel/2003-02/msg00001.html>.
Ah, thanks for digging out this, that'll be helpful.
Samuel