libc/glibc: add patch to fix build for PowerPC64.
For a PowerPC64 build, avoid erroneous inline optimization of initfini.s
Signed-off-by: "Frederic R. ROUSSEL" <fr.frasc@gmail.com>
Message-Id: <7585f649ad60b23c4a31.1360185227@x58>
Patchwork-Id: 218755
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.13/950-initfini-ppc64.patch Wed Feb 06 13:11:46 2013 -0800
1.3 @@ -0,0 +1,20 @@
1.4 +Prevent erroneous inline optimization of initfini.s on PowerPC64.
1.5 +
1.6 +The problem and the fix was reported there:
1.7 +http://sourceware.org/ml/libc-alpha/2012-01/msg00195.html
1.8 +Git commit:
1.9 +commit 1fe05ea95e1460e5e1cf1568a8ce3982f0f02de6
1.10 +Author: Ryan S. Arnold <rsa@us.ibm.com>
1.11 +Date: Tue May 3 17:26:17 2011 -0500
1.12 +
1.13 +--- glibc.orig/sysdeps/powerpc/powerpc64/Makefile 2012-12-22 19:10:06.713568781 -0800
1.14 ++++ glibc/sysdeps/powerpc/powerpc64/Makefile 2012-12-22 19:10:50.318605517 -0800
1.15 +@@ -31,7 +31,7 @@
1.16 + ifneq ($(elf),no)
1.17 + # The initfini generation code doesn't work in the presence of -fPIC, so
1.18 + # we use -fpic instead which is much better.
1.19 +-CFLAGS-initfini.s += -fpic -O1
1.20 ++CFLAGS-initfini.s += -fpic -O1 -fno-inline
1.21 + endif
1.22 + endif
1.23 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/patches/glibc/2.14.1/950-initfini-ppc64.patch Wed Feb 06 13:11:46 2013 -0800
2.3 @@ -0,0 +1,20 @@
2.4 +Prevent erroneous inline optimization of initfini.s on PowerPC64.
2.5 +
2.6 +The problem and the fix was reported there:
2.7 +http://sourceware.org/ml/libc-alpha/2012-01/msg00195.html
2.8 +Git commit:
2.9 +commit 1fe05ea95e1460e5e1cf1568a8ce3982f0f02de6
2.10 +Author: Ryan S. Arnold <rsa@us.ibm.com>
2.11 +Date: Tue May 3 17:26:17 2011 -0500
2.12 +
2.13 +--- glibc.orig/sysdeps/powerpc/powerpc64/Makefile 2012-12-22 19:10:06.713568781 -0800
2.14 ++++ glibc/sysdeps/powerpc/powerpc64/Makefile 2012-12-22 19:10:50.318605517 -0800
2.15 +@@ -31,7 +31,7 @@
2.16 + ifneq ($(elf),no)
2.17 + # The initfini generation code doesn't work in the presence of -fPIC, so
2.18 + # we use -fpic instead which is much better.
2.19 +-CFLAGS-initfini.s += -fpic -O1
2.20 ++CFLAGS-initfini.s += -fpic -O1 -fno-inline
2.21 + endif
2.22 + endif
2.23 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/patches/glibc/2.14/950-initfini-ppc64.patch Wed Feb 06 13:11:46 2013 -0800
3.3 @@ -0,0 +1,20 @@
3.4 +Prevent erroneous inline optimization of initfini.s on PowerPC64.
3.5 +
3.6 +The problem and the fix was reported there:
3.7 +http://sourceware.org/ml/libc-alpha/2012-01/msg00195.html
3.8 +Git commit:
3.9 +commit 1fe05ea95e1460e5e1cf1568a8ce3982f0f02de6
3.10 +Author: Ryan S. Arnold <rsa@us.ibm.com>
3.11 +Date: Tue May 3 17:26:17 2011 -0500
3.12 +
3.13 +--- glibc.orig/sysdeps/powerpc/powerpc64/Makefile 2012-12-22 19:10:06.713568781 -0800
3.14 ++++ glibc/sysdeps/powerpc/powerpc64/Makefile 2012-12-22 19:10:50.318605517 -0800
3.15 +@@ -31,7 +31,7 @@
3.16 + ifneq ($(elf),no)
3.17 + # The initfini generation code doesn't work in the presence of -fPIC, so
3.18 + # we use -fpic instead which is much better.
3.19 +-CFLAGS-initfini.s += -fpic -O1
3.20 ++CFLAGS-initfini.s += -fpic -O1 -fno-inline
3.21 + endif
3.22 + endif
3.23 +