aboutsummaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-08-01 00:10:03 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-08-01 00:10:03 +0200
commit42fc12ef7345855ed6e2f23f863a16f43c2a8078 (patch)
tree2db81f345f73ecdfb94bba9936a9dd0661b40bc8 /hurd
parentd4b54bdff0064c36097dd5468f8aca9257472e9a (diff)
downloadglibc-42fc12ef7345855ed6e2f23f863a16f43c2a8078.zip
glibc-42fc12ef7345855ed6e2f23f863a16f43c2a8078.tar.gz
glibc-42fc12ef7345855ed6e2f23f863a16f43c2a8078.tar.bz2
hurd: Fix exec usage of mach_setup_thread
Exec needs that mach_setup_thread does *not* set up TLS since it works on another task, so we have to split this into mach_setup_tls. * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes. * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to... (__mach_setup_tls): ... new function. (mach_setup_tls): New alias. * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after __mach_setup_thread. * sysdeps/mach/hurd/profil.c (update_waiter): Likewise. * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise. * mach/Versions [libc] (mach_setup_tls): Add symbol. * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurdsig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c
index 6b73dcd..aa82f63 100644
--- a/hurd/hurdsig.c
+++ b/hurd/hurdsig.c
@@ -1280,6 +1280,8 @@ _hurdsig_init (const int *intarray, size_t intarraysize)
(vm_address_t *) &__hurd_sigthread_stack_base,
&stacksize);
assert_perror (err);
+ err = __mach_setup_tls (_hurd_msgport_thread);
+ assert_perror (err);
__hurd_sigthread_stack_end = __hurd_sigthread_stack_base + stacksize;