Re: [PATCH] hurd: add TLS support

2015-02-07 Thread Roland McGrath
> --- a/csu/libc-start.c > +++ b/csu/libc-start.c > @@ -189,10 +189,12 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** > MAIN_AUXVEC_DECL), >/* Perform IREL{,A} relocations. */ >apply_irel (); > > +#ifndef __GNU__ >/* Initialize the thread library at least a bit since the lib

Re: [PATCH] hurd: add TLS support

2015-02-07 Thread Samuel Thibault
Note: we also have the support for TLS-based per-thread glibc variables, I will submit that later. Samuel

[PATCH] hurd: add TLS support

2015-02-07 Thread Samuel Thibault
2009-07-30 Samuel Thibault Add TLS support: __mach_setup_tls allocates and sets architecture state for the TLS area. i386 fork needs to propagate the segment kernel definitions. * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC - 0]: Include * sysdeps/mach/h

[PATCH,HURD] Add TLS support

2012-05-12 Thread Samuel Thibault
This adds TLS support to GNU/HURD. Using it to replace threadvar will be part of another patch. I had to separate the thread state with segments from the thread state without segments: each thread has its own gs segment, which needs to be inherited across fork, etc. I also had to fix some initial