aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/pthread/tss_get.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:01 +0200
commita062ba38362f370aefac400e34ece13d09083752 (patch)
tree8ca67deeaecba5e56ef67641f93283963168b777 /sysdeps/pthread/tss_get.c
parentdeb317d5109aecd54573cc0340d23d641d80d45e (diff)
downloadglibc-a062ba38362f370aefac400e34ece13d09083752.zip
glibc-a062ba38362f370aefac400e34ece13d09083752.tar.gz
glibc-a062ba38362f370aefac400e34ece13d09083752.tar.bz2
nptl: Move tss_get into libc
The symbol was moved using scripts/move-symbol-to-libc.py. __pthread_getspecific@@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 'sysdeps/pthread/tss_get.c')
-rw-r--r--sysdeps/pthread/tss_get.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sysdeps/pthread/tss_get.c b/sysdeps/pthread/tss_get.c
index a4b6f82..f74af18 100644
--- a/sysdeps/pthread/tss_get.c
+++ b/sysdeps/pthread/tss_get.c
@@ -16,10 +16,19 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
+#include <shlib-compat.h>
#include "thrd_priv.h"
void *
-tss_get (tss_t tss_id)
+__tss_get (tss_t tss_id)
{
return __pthread_getspecific (tss_id);
}
+#if PTHREAD_IN_LIBC
+versioned_symbol (libc, __tss_get, tss_get, GLIBC_2_34);
+# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_28, GLIBC_2_34)
+compat_symbol (libpthread, __tss_get, tss_get, GLIBC_2_28);
+# endif
+#else /* !PTHREAD_IN_LIBC */
+strong_alias (__tss_get, tss_get)
+#endif