diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-23 10:11:51 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-23 17:06:46 +0200 |
commit | da8e3710d8791f4b7f164ba9eb45b823ada44634 (patch) | |
tree | 0cb74656b1450c82d16331ee8c3a6f281ccbaacd /sysdeps/sparc | |
parent | ce4b3b7befc1010a4be0294d28984d0af47b7bc2 (diff) | |
download | glibc-da8e3710d8791f4b7f164ba9eb45b823ada44634.tar.gz glibc-da8e3710d8791f4b7f164ba9eb45b823ada44634.tar.xz glibc-da8e3710d8791f4b7f164ba9eb45b823ada44634.zip |
nptl: Move pthread_spin_lock into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'sysdeps/sparc')
-rw-r--r-- | sysdeps/sparc/sparc32/pthread_spin_lock.S | 10 | ||||
-rw-r--r-- | sysdeps/sparc/sparc64/pthread_spin_lock.S | 10 |
2 files changed, 16 insertions, 4 deletions
diff --git a/sysdeps/sparc/sparc32/pthread_spin_lock.S b/sysdeps/sparc/sparc32/pthread_spin_lock.S index e14f5ce864..1c5894137c 100644 --- a/sysdeps/sparc/sparc32/pthread_spin_lock.S +++ b/sysdeps/sparc/sparc32/pthread_spin_lock.S @@ -16,9 +16,10 @@ <https://www.gnu.org/licenses/>. */ #include <sysdep.h> +#include <shlib-compat.h> .text -ENTRY(pthread_spin_lock) +ENTRY(__pthread_spin_lock) 1: ldstub [%o0], %g1 orcc %g1, 0x0, %g0 bne,a 2f @@ -29,4 +30,9 @@ ENTRY(pthread_spin_lock) bne,a 2b ldub [%o0], %g1 ba,a 1b -END(pthread_spin_lock) +END(__pthread_spin_lock) +versioned_symbol (libc, __pthread_spin_lock, pthread_spin_lock, GLIBC_2_34) + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34) +compat_symbol (libpthread, __pthread_spin_lock, pthread_spin_lock, GLIBC_2_2) +#endif diff --git a/sysdeps/sparc/sparc64/pthread_spin_lock.S b/sysdeps/sparc/sparc64/pthread_spin_lock.S index b8a2fc9fa7..d65bdc58fb 100644 --- a/sysdeps/sparc/sparc64/pthread_spin_lock.S +++ b/sysdeps/sparc/sparc64/pthread_spin_lock.S @@ -16,9 +16,10 @@ <https://www.gnu.org/licenses/>. */ #include <sysdep.h> +#include <shlib-compat.h> .text -ENTRY(pthread_spin_lock) +ENTRY(__pthread_spin_lock) 1: ldstub [%o0], %g1 brnz,pn %g1, 2f membar #StoreLoad | #StoreStore @@ -28,4 +29,9 @@ ENTRY(pthread_spin_lock) brnz,pt %g1, 2b membar #LoadLoad ba,a,pt %xcc, 1b -END(pthread_spin_lock) +END(__pthread_spin_lock) +versioned_symbol (libc, __pthread_spin_lock, pthread_spin_lock, GLIBC_2_34) + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34) +compat_symbol (libpthread, __pthread_spin_lock, pthread_spin_lock, GLIBC_2_2) +#endif |