From aae43acfd14654d8733f022cd7b44f1636452db9 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 21 Apr 2021 19:49:51 +0200 Subject: nptl: Move pthread_getspecific, __pthread_getspecific into libc The symbols have been moved using scripts/move-symbol-to-libc.py. --- nptl/pthread_getspecific.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'nptl/pthread_getspecific.c') diff --git a/nptl/pthread_getspecific.c b/nptl/pthread_getspecific.c index d38847e1c2..230497a84d 100644 --- a/nptl/pthread_getspecific.c +++ b/nptl/pthread_getspecific.c @@ -18,10 +18,10 @@ #include #include "pthreadP.h" - +#include void * -__pthread_getspecific (pthread_key_t key) +___pthread_getspecific (pthread_key_t key) { struct pthread_key_data *data; @@ -63,5 +63,15 @@ __pthread_getspecific (pthread_key_t key) return result; } -weak_alias (__pthread_getspecific, pthread_getspecific) -hidden_def (__pthread_getspecific) +versioned_symbol (libc, ___pthread_getspecific, __pthread_getspecific, + GLIBC_2_34); +libc_hidden_ver (___pthread_getspecific, __pthread_getspecific) + +versioned_symbol (libc, ___pthread_getspecific, pthread_getspecific, + GLIBC_2_34); +#if OTHER_SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_34) +compat_symbol (libpthread, ___pthread_getspecific, __pthread_getspecific, + GLIBC_2_0); +compat_symbol (libpthread, ___pthread_getspecific, pthread_getspecific, + GLIBC_2_0); +#endif -- cgit v1.2.3