about summary refs log tree commit diff
path: root/sysdeps/x86_64/nptl
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-23 10:11:51 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-23 17:06:46 +0200
commitda8e3710d8791f4b7f164ba9eb45b823ada44634 (patch)
tree0cb74656b1450c82d16331ee8c3a6f281ccbaacd /sysdeps/x86_64/nptl
parentce4b3b7befc1010a4be0294d28984d0af47b7bc2 (diff)
downloadglibc-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/x86_64/nptl')
-rw-r--r--sysdeps/x86_64/nptl/pthread_spin_lock.S10
1 files changed, 8 insertions, 2 deletions
diff --git a/sysdeps/x86_64/nptl/pthread_spin_lock.S b/sysdeps/x86_64/nptl/pthread_spin_lock.S
index ff5e7525ca..bfc1b21aeb 100644
--- a/sysdeps/x86_64/nptl/pthread_spin_lock.S
+++ b/sysdeps/x86_64/nptl/pthread_spin_lock.S
@@ -16,8 +16,9 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
+#include <shlib-compat.h>
 
-ENTRY(pthread_spin_lock)
+ENTRY(__pthread_spin_lock)
 1:	LOCK
 	decl	0(%rdi)
 	jne	2f
@@ -30,4 +31,9 @@ ENTRY(pthread_spin_lock)
 	cmpl	$0, 0(%rdi)
 	jg	1b
 	jmp	2b
-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