aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-23 10:23:24 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-23 17:06:48 +0200
commit4baf02b33235b7cdcb252bafebc132c66020eedd (patch)
tree7ef1a1e8205d89a0224743f19c15443ce793aead /sysdeps/i386
parentda8e3710d8791f4b7f164ba9eb45b823ada44634 (diff)
downloadglibc-4baf02b33235b7cdcb252bafebc132c66020eedd.tar
glibc-4baf02b33235b7cdcb252bafebc132c66020eedd.tar.gz
glibc-4baf02b33235b7cdcb252bafebc132c66020eedd.tar.bz2
glibc-4baf02b33235b7cdcb252bafebc132c66020eedd.zip
nptl: Move pthread_spin_trylock into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'sysdeps/i386')
-rw-r--r--sysdeps/i386/pthread_spin_trylock.S13
1 files changed, 10 insertions, 3 deletions
diff --git a/sysdeps/i386/pthread_spin_trylock.S b/sysdeps/i386/pthread_spin_trylock.S
index e90d7288b9..9be0cb766e 100644
--- a/sysdeps/i386/pthread_spin_trylock.S
+++ b/sysdeps/i386/pthread_spin_trylock.S
@@ -18,9 +18,9 @@
#include <sysdep.h>
#include <errno.h>
+#include <shlib-compat.h>
-
-ENTRY (pthread_spin_trylock)
+ENTRY (__pthread_spin_trylock)
movl 4(%esp), %edx
movl $1, %eax
xorl %ecx, %ecx
@@ -35,4 +35,11 @@ ENTRY (pthread_spin_trylock)
0:
#endif
ret
-END (pthread_spin_trylock)
+END (__pthread_spin_trylock)
+versioned_symbol (libc, __pthread_spin_trylock, pthread_spin_trylock,
+ GLIBC_2_34)
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_spin_trylock, pthread_spin_trylock,
+ GLIBC_2_2)
+#endif