patches/glibc/ports-2.10.1/320-hppa-pie.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 
     2 
     3 diff -durN glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/hppa/elf/start.S glibc-2.10.1/glibc-ports-2.10.1/sysdeps/hppa/elf/start.S
     4 --- glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/hppa/elf/start.S	2009-05-16 10:36:20.000000000 +0200
     5 +++ glibc-2.10.1/glibc-ports-2.10.1/sysdeps/hppa/elf/start.S	2009-11-13 00:50:28.000000000 +0100
     6 @@ -96,16 +96,16 @@
     7  
     8  #if SHARED
     9  	/* load main (1st argument) */
    10 -	addil	LR'.Lpmain, %r19
    11 -	ldw	RR'.Lpmain(%r1), %r26
    12 +	addil	LT'.Lpmain, %r19
    13 +	ldw	RT'.Lpmain(%r1), %r26
    14  	ldw	0(%r26),%r26
    15  	/* void (*init) (void) (4th argument) */
    16 -	addil	LR'.Lp__libc_csu_init, %r19
    17 -	ldw	RR'.Lp__libc_csu_init(%r1), %r23
    18 +	addil	LT'.Lp__libc_csu_init, %r19
    19 +	ldw	RT'.Lp__libc_csu_init(%r1), %r23
    20  	ldw	0(%r23), %r23
    21  	/* void (*fini) (void) (5th argument) */
    22 -	addil	LR'.Lp__libc_csu_fini, %r19
    23 -	ldw	RR'.Lp__libc_csu_fini(%r1), %r22
    24 +	addil	LT'.Lp__libc_csu_fini, %r19
    25 +	ldw	RT'.Lp__libc_csu_fini(%r1), %r22
    26  	ldw	0(%r22), %r22
    27  #else
    28  	/* load main (1st argument) */
    29 diff -durN glibc-2.10.1.orig/ports/sysdeps/hppa/elf/start.S glibc-2.10.1/ports/sysdeps/hppa/elf/start.S