This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH] Define RTLD_SINGLE_THREAD_P on ARM
- From: Aurelien Jarno <aurelien at aurel32 dot net>
- To: libc-ports at sourceware dot org
- Date: Fri, 25 May 2007 10:32:48 +0200
- Subject: [PATCH] Define RTLD_SINGLE_THREAD_P on ARM
Hi,
Please find below a patch to get the glibc buildable on ARM.
RTLD_SINGLE_THREAD_P has been defined for ARM EABI, but not for ARM
old ABI.
Bye,
Aurelien
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
2007-05-25 Aurelien Jarno <aurelien@aurel32.net>
* ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h
(RTLD_SINGLE_THREAD_P): Define.
--- ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2007-05-25 01:40:22.000000000 +0200
+++ ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2007-05-25 01:41:02.000000000 +0200
@@ -126,3 +126,9 @@
# define NO_CANCELLATION 1
#endif
+
+#ifndef __ASSEMBLER__
+# define RTLD_SINGLE_THREAD_P \
+ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
+ header.multiple_threads) == 0, 1)
+#endif