aboutsummaryrefslogtreecommitdiff
path: root/nptl/vars.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-10 10:31:42 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-10 10:31:42 +0200
commit8c1c0da3a8112695d5cc82aae22666321965b42f (patch)
tree6cd1ad903f1ddb1b86146d3d2f85363e09aaa982 /nptl/vars.c
parent652c7c6fe7a08643b8e98f085d422f4e43ec47b4 (diff)
downloadglibc-8c1c0da3a8112695d5cc82aae22666321965b42f.zip
glibc-8c1c0da3a8112695d5cc82aae22666321965b42f.tar.gz
glibc-8c1c0da3a8112695d5cc82aae22666321965b42f.tar.bz2
nptl: Move __default_pthread_attr, __default_pthread_attr_lock into libc
The GLIBC_PRIVATE exports for these symbols are expected to be temporary. Tested-by: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nptl/vars.c')
-rw-r--r--nptl/vars.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/nptl/vars.c b/nptl/vars.c
index 03a6cc8..989d793 100644
--- a/nptl/vars.c
+++ b/nptl/vars.c
@@ -22,7 +22,11 @@
/* Default thread attributes for the case when the user does not
provide any. */
-union pthread_attr_transparent __default_pthread_attr attribute_hidden;
+union pthread_attr_transparent __default_pthread_attr
+ __attribute__ ((nocommon));
+libc_hidden_data_def (__default_pthread_attr)
/* Mutex protecting __default_pthread_attr. */
-int __default_pthread_attr_lock = LLL_LOCK_INITIALIZER;
+int __default_pthread_attr_lock __attribute__ ((nocommon))
+ = LLL_LOCK_INITIALIZER;
+libc_hidden_data_def (__default_pthread_attr_lock)