patches/glibc/2.14/950-initfini-ppc64.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Mar 11 22:11:43 2014 +0100 (2014-03-11)
changeset 3293 e11a8a2e225d
permissions -rw-r--r--
comptools: do not force build of make-3.81 unless really needed

On systems with make-3.82, we forcibly force the build and the use
of make-3.81

But some newer tools break when building with make-3.81. For example,
eglibc-3.18 breaks.

Introduce a new blind options that tools may select if they require
make-3.81. If the system does not have make-3.81, and this option is
selected, then we force the build of make-3.81. Otherwise, we leave
it to the user to decide on his own.

Note that no component selects this option for now. It will come in
later patches as we find them.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
fr@3182
     1
Prevent erroneous inline optimization of initfini.s on PowerPC64.
fr@3182
     2
fr@3182
     3
The problem and the fix was reported there:
fr@3182
     4
http://sourceware.org/ml/libc-alpha/2012-01/msg00195.html
fr@3182
     5
Git commit:
fr@3182
     6
commit 1fe05ea95e1460e5e1cf1568a8ce3982f0f02de6
fr@3182
     7
Author: Ryan S. Arnold <rsa@us.ibm.com>
fr@3182
     8
Date: Tue May 3 17:26:17 2011 -0500
fr@3182
     9
fr@3182
    10
--- glibc.orig/sysdeps/powerpc/powerpc64/Makefile	2012-12-22 19:10:06.713568781 -0800
fr@3182
    11
+++ glibc/sysdeps/powerpc/powerpc64/Makefile	2012-12-22 19:10:50.318605517 -0800
fr@3182
    12
@@ -31,7 +31,7 @@
fr@3182
    13
 ifneq ($(elf),no)
fr@3182
    14
 # The initfini generation code doesn't work in the presence of -fPIC, so
fr@3182
    15
 # we use -fpic instead which is much better.
fr@3182
    16
-CFLAGS-initfini.s += -fpic -O1
fr@3182
    17
+CFLAGS-initfini.s += -fpic -O1 -fno-inline
fr@3182
    18
 endif
fr@3182
    19
 endif
fr@3182
    20