patches/glibc/2.14.1/950-initfini-ppc64.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Jun 25 23:33:01 2014 +0200 (2014-06-25)
changeset 3325 069f43a215cc
permissions -rw-r--r--
all: fix wildcard to work with make-4.x

In make-3.8x, the $(wildacrd) function would sort the entries,
while in make-4.x, it would just return the entries in any
unpredictable order [*]

Use the $(sort) function to get reproducible behaviour.

[*] Well, most probably the roder the entries appear when read
from readdir()

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