about summary refs log tree commit diff
path: root/nptl/pthread_setspecific.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-03 08:12:12 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-03 08:18:08 +0200
commit2c5c5c87c981fd68e7f646db0d479311e820c2f7 (patch)
tree30f1a159054b0844316bfc28f1415a9e804c8e9b /nptl/pthread_setspecific.c
parenta062ba38362f370aefac400e34ece13d09083752 (diff)
downloadglibc-2c5c5c87c981fd68e7f646db0d479311e820c2f7.tar.gz
glibc-2c5c5c87c981fd68e7f646db0d479311e820c2f7.tar.xz
glibc-2c5c5c87c981fd68e7f646db0d479311e820c2f7.zip
nptl: Move tss_set into libc
The symbol was moved using scripts/move-symbol-to-libc.py.

__pthread_setspecific@@GLIBC_2.34 is no longer needed after the move,
so it is removed with this commit, too.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nptl/pthread_setspecific.c')
-rw-r--r--nptl/pthread_setspecific.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/nptl/pthread_setspecific.c b/nptl/pthread_setspecific.c
index fdcab3b6d9..820145a3d1 100644
--- a/nptl/pthread_setspecific.c
+++ b/nptl/pthread_setspecific.c
@@ -89,14 +89,13 @@ ___pthread_setspecific (pthread_key_t key, const void *value)
 
   return 0;
 }
-versioned_symbol (libc, ___pthread_setspecific, __pthread_setspecific,
+versioned_symbol (libc, ___pthread_setspecific, pthread_setspecific,
 		  GLIBC_2_34);
 libc_hidden_ver (___pthread_setspecific, __pthread_setspecific)
+#ifndef SHARED
+strong_alias (___pthread_setspecific, __pthread_setspecific)
+#endif
 
-/* Several aliases for setting different symbol versions.  */
-
-versioned_symbol (libc, ___pthread_setspecific, pthread_setspecific,
-		  GLIBC_2_34);
 #if OTHER_SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_34)
 compat_symbol (libpthread, ___pthread_setspecific, __pthread_setspecific,
 	       GLIBC_2_0);