about summary refs log tree commit diff
path: root/sysdeps/nptl
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-22 09:56:37 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-22 11:08:43 +0200
commit6573396163082f45c9b9150605f0390305e37a6c (patch)
treef767ec2296c9b18b69a823c878769f65c5cfa636 /sysdeps/nptl
parent1d67cf9e8a0194588e66fb3b7afcbdc3bf836a30 (diff)
downloadglibc-6573396163082f45c9b9150605f0390305e37a6c.tar.gz
glibc-6573396163082f45c9b9150605f0390305e37a6c.tar.xz
glibc-6573396163082f45c9b9150605f0390305e37a6c.zip
nptl: __nptl_set_robust_list_avail must be nocommon
This is required for GCC versions before 10 which default to -fcommon.

Fixes commit 442e8a40da9dfa24aeebf4f1a163f0a58b12cf7e ("nptl: Move part
of TCB initialization from libpthread to __tls_init_tp").
Diffstat (limited to 'sysdeps/nptl')
-rw-r--r--sysdeps/nptl/dl-tls_init_tp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index c5172b7613..05d2b6cfcc 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -23,7 +23,7 @@
 #include <tls.h>
 
 #ifndef __ASSUME_SET_ROBUST_LIST
-bool __nptl_set_robust_list_avail;
+bool __nptl_set_robust_list_avail __attribute__ ((nocommon));
 rtld_hidden_data_def (__nptl_set_robust_list_avail)
 #endif