]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
nptl: __nptl_set_robust_list_avail must be nocommon
authorFlorian Weimer <fweimer@redhat.com>
Thu, 22 Apr 2021 07:56:37 +0000 (09:56 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 22 Apr 2021 09:08:43 +0000 (11:08 +0200)
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").

sysdeps/nptl/dl-tls_init_tp.c

index c5172b7613e2c5c451ace06099ea3b821bf338ad..05d2b6cfcc753dca41355dfc71c9ef6989e44a19 100644 (file)
@@ -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