patches/glibc/ports-2.6.1/100-ARM-NPTL.patch
author |
Cody P Schafer <dev@codyps.com> |
|
Mon May 12 00:02:13 2014 +0200 (2014-05-12) |
changeset 3322 |
eb13867a034c |
parent 365 |
ba634892cc18
|
permissions |
-rw-r--r-- |
arch/powerpc: add powerpc64le support
Technically, I don't forbid powerpcle support either, but I'm not sure that
there is any library/compiler support for that at the moment (though the hw
technically makes it possible).
powerpc64le needs glibc 2.19 and gcc 4.9. I haven't looked into the support
tools, but at least gdb 7.5 is too old (7.7.1 definitely has support).
Also make powerpc64 non-experimental. It's practically old at this point.
Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: use ${target_endian_le} and ${target_bits_64}]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <64bfbbced9dd8f62e0d6.1399801945@gun>
Patchwork-Id: 347775
yann@365
|
1 |
diff -durN glibc-2.6.1.orig/glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h glibc-2.6.1/glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h
|
yann@367
|
2 |
--- glibc-2.6.1.orig/glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2005-11-16 20:22:59.000000000 +0100
|
yann@367
|
3 |
+++ glibc-2.6.1/glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2007-09-06 13:53:16.000000000 +0200
|
yann@365
|
4 |
@@ -126,3 +126,9 @@
|
yann@365
|
5 |
# define NO_CANCELLATION 1
|
yann@365
|
6 |
|
yann@365
|
7 |
#endif
|
yann@365
|
8 |
+
|
yann@365
|
9 |
+#ifndef __ASSEMBLER__
|
yann@365
|
10 |
+# define RTLD_SINGLE_THREAD_P \
|
yann@365
|
11 |
+ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
|
yann@365
|
12 |
+ header.multiple_threads) == 0, 1)
|
yann@365
|
13 |
+#endif
|