aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc
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/powerpc
parentce4b3b7befc1010a4be0294d28984d0af47b7bc2 (diff)
downloadglibc-da8e3710d8791f4b7f164ba9eb45b823ada44634.zip
glibc-da8e3710d8791f4b7f164ba9eb45b823ada44634.tar.gz
glibc-da8e3710d8791f4b7f164ba9eb45b823ada44634.tar.bz2
nptl: Move pthread_spin_lock into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r--sysdeps/powerpc/nptl/pthread_spin_lock.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/powerpc/nptl/pthread_spin_lock.c b/sysdeps/powerpc/nptl/pthread_spin_lock.c
index 28bb538..a17dd41 100644
--- a/sysdeps/powerpc/nptl/pthread_spin_lock.c
+++ b/sysdeps/powerpc/nptl/pthread_spin_lock.c
@@ -17,9 +17,10 @@
<https://www.gnu.org/licenses/>. */
#include "pthreadP.h"
+#include <shlib-compat.h>
int
-pthread_spin_lock (pthread_spinlock_t *lock)
+__pthread_spin_lock (pthread_spinlock_t *lock)
{
unsigned int __tmp;
@@ -41,3 +42,8 @@ pthread_spin_lock (pthread_spinlock_t *lock)
: "cr0", "memory");
return 0;
}
+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