summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-09-19 18:01:24 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-09-19 18:01:24 +0200
commit8042775b6f2ab0fd27119725bffa2ee7a11a4478 (patch)
tree44f1535cc09d7fe3e8571e841cc86e7693ca3308 /sysdeps
parentc3bb673e376492360c895e3f70f49cbbdb48bbaf (diff)
Fix glibc-2.22 ld.so start
* sysdeps/mach/hurd/cthreads.c (__libc_lock_self) [!IS_IN (rtld)]: Remove __thread qualifier.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/cthreads.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/cthreads.c b/sysdeps/mach/hurd/cthreads.c
index b53a1899cc..d8c175ccff 100644
--- a/sysdeps/mach/hurd/cthreads.c
+++ b/sysdeps/mach/hurd/cthreads.c
@@ -20,7 +20,13 @@
#include <stdlib.h>
char __libc_lock_self0[0];
+#if IS_IN (rtld)
+/* We don't support static tls relocation so early, but we do not have threads
+ * * there either anyway */
+static char __libc_lock_self[0];
+#else
static __thread char __libc_lock_self[0];
+#endif
void *
__libc_get_lock_self(void)