aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/alpha
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/alpha
parentda8e3710d8791f4b7f164ba9eb45b823ada44634 (diff)
downloadglibc-4baf02b33235b7cdcb252bafebc132c66020eedd.zip
glibc-4baf02b33235b7cdcb252bafebc132c66020eedd.tar.gz
glibc-4baf02b33235b7cdcb252bafebc132c66020eedd.tar.bz2
nptl: Move pthread_spin_trylock into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'sysdeps/alpha')
-rw-r--r--sysdeps/alpha/nptl/pthread_spin_trylock.S16
1 files changed, 12 insertions, 4 deletions
diff --git a/sysdeps/alpha/nptl/pthread_spin_trylock.S b/sysdeps/alpha/nptl/pthread_spin_trylock.S
index ea4a55f..31ba507 100644
--- a/sysdeps/alpha/nptl/pthread_spin_trylock.S
+++ b/sysdeps/alpha/nptl/pthread_spin_trylock.S
@@ -16,6 +16,7 @@
License along with the GNU C Library. If not, see
<https://www.gnu.org/licenses/>. */
+#include <shlib-compat.h>
#define _ERRNO_H 1
#include <bits/errno.h>
@@ -23,9 +24,9 @@
.text
.align 4
- .globl pthread_spin_trylock
- .ent pthread_spin_trylock
-pthread_spin_trylock:
+ .globl __pthread_spin_trylock
+ .ent __pthread_spin_trylock
+__pthread_spin_trylock:
.frame $sp, 0, $26, 0
.prologue 0
@@ -42,4 +43,11 @@ pthread_spin_trylock:
1: ret
2: br 0b
- .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