aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/sh/nptl/pthread_spin_trylock.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sh/nptl/pthread_spin_trylock.S')
-rw-r--r--sysdeps/sh/nptl/pthread_spin_trylock.S16
1 files changed, 12 insertions, 4 deletions
diff --git a/sysdeps/sh/nptl/pthread_spin_trylock.S b/sysdeps/sh/nptl/pthread_spin_trylock.S
index 12c2c58ee5..0200dc386b 100644
--- a/sysdeps/sh/nptl/pthread_spin_trylock.S
+++ b/sysdeps/sh/nptl/pthread_spin_trylock.S
@@ -16,11 +16,12 @@
<https://www.gnu.org/licenses/>. */
#include <errno.h>
+#include <shlib-compat.h>
- .globl pthread_spin_trylock
- .type pthread_spin_trylock,@function
+ .globl __pthread_spin_trylock
+ .type __pthread_spin_trylock,@function
.align 5
-pthread_spin_trylock:
+__pthread_spin_trylock:
tas.b @r4
bf/s 1f
mov #EBUSY, r0
@@ -28,4 +29,11 @@ pthread_spin_trylock:
1:
rts
nop
- .size pthread_spin_trylock,.-pthread_spin_trylock
+ .size __pthread_spin_trylock,.-__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