From ce4b3b7befc1010a4be0294d28984d0af47b7bc2 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 22 Apr 2021 15:18:12 +0200 Subject: nptl: Move pthread_spin_init, Move pthread_spin_unlock into libc For some architectures, the two functions are aliased, so these symbols need to be moved at the same time. The symbols were moved using scripts/move-symbol-to-libc.py. --- sysdeps/sparc/sparc64/pthread_spin_unlock.S | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'sysdeps/sparc') diff --git a/sysdeps/sparc/sparc64/pthread_spin_unlock.S b/sysdeps/sparc/sparc64/pthread_spin_unlock.S index 2133710124..71dac5433e 100644 --- a/sysdeps/sparc/sparc64/pthread_spin_unlock.S +++ b/sysdeps/sparc/sparc64/pthread_spin_unlock.S @@ -16,13 +16,21 @@ . */ #include +#include .text -ENTRY(pthread_spin_unlock) +ENTRY(__pthread_spin_unlock) membar #StoreStore | #LoadStore stb %g0, [%o0] retl clr %o0 -END(pthread_spin_unlock) +END(__pthread_spin_unlock) +versioned_symbol (libc, __pthread_spin_unlock, pthread_spin_unlock, GLIBC_2_34) +/* The implementation of pthread_spin_init is identical. */ +versioned_symbol (libc, __pthread_spin_unlock, pthread_spin_init, GLIBC_2_34) -strong_alias (pthread_spin_unlock, pthread_spin_init) +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34) +compat_symbol (libpthread, __pthread_spin_unlock, pthread_spin_unlock, + GLIBC_2_2) +compat_symbol (libpthread, __pthread_spin_unlock, pthread_spin_init, GLIBC_2_2) +#endif -- cgit 1.4.1