From 42fc12ef7345855ed6e2f23f863a16f43c2a8078 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 1 Aug 2018 00:10:03 +0200 Subject: 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. --- ChangeLog | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 7d9a66e659..79bdb9da3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,17 @@ initialization... (init): ... before initializing libpthread. + * 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. + 2018-07-31 Carlos O'Donell * manual/install.texi: Update versions. -- cgit v1.2.3