patches/glibc/2.14/950-initfini-ppc64.patch
changeset 3182 7209c64d2318
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.14/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 +