changeset 6325:a700f836485c

Fix linux-ppc::glibc-core (glibc-2.3) section attribute
author Masamichi Hosoda <trueroad@users.noreply.github.com>
date Tue, 20 Jan 2015 23:46:14 +0900
parents 988dc0aec476
children 97b1c6e0a2cb
files gub/specs/glibc-core.py gub/specs/glibc.py patches/glibc-2.3-linux-ppc-sysdeps-generic-strtol_l.patch
diffstat 3 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/glibc-core.py	Tue Jan 20 22:46:08 2015 +0900
+++ b/gub/specs/glibc-core.py	Tue Jan 20 23:46:14 2015 +0900
@@ -39,6 +39,9 @@
 ''')
 
 class Glibc_core__linux__ppc (Glibc_core):
+    patches = Glibc_core.patches + [
+        'glibc-2.3-linux-ppc-sysdeps-generic-strtol_l.patch',
+        ]
         # ugh, but the gnulib=-lgcc hack does something else on ppc...
         # it (huh?) drops *-lgcc* (instead of -lgcc_eh) from libc.so
         # linkage, which then fails.
--- a/gub/specs/glibc.py	Tue Jan 20 22:46:08 2015 +0900
+++ b/gub/specs/glibc.py	Tue Jan 20 23:46:14 2015 +0900
@@ -116,6 +116,11 @@
     def LD_PRELOAD (self):
         return ''
 
+class Glibc__linux__ppc (Glibc):
+    patches = Glibc.patches + [
+        'glibc-2.3-linux-ppc-sysdeps-generic-strtol_l.patch',
+        ]
+
 class Glibc__linux__mipsel (Glibc):
     patches = Glibc.patches + [
         'glibc-2.3-mips-syscall.patch',
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/glibc-2.3-linux-ppc-sysdeps-generic-strtol_l.patch	Tue Jan 20 23:46:14 2015 +0900
@@ -0,0 +1,12 @@
+--- a/sysdeps/generic/strtol_l.c	2004-06-16 04:54:57.000000000 +0900
++++ b/sysdeps/generic/strtol_l.c	2015-01-20 23:22:32.816966100 +0900
+@@ -170,8 +170,7 @@
+    overhead of the division.  */
+ 
+ #define DEF(TYPE, NAME)							   \
+-  const TYPE NAME[] attribute_hidden					   \
+-	__attribute__((section(".gnu.linkonce.r." #NAME))) =		   \
++  const TYPE NAME[] attribute_hidden =					   \
+   {									   \
+     F(2), F(3), F(4), F(5), F(6), F(7), F(8), F(9), F(10), 		   \
+     F(11), F(12), F(13), F(14), F(15), F(16), F(17), F(18), F(19), F(20),  \