]> git.pld-linux.org Git - packages/dietlibc.git/blob - dietlibc-ppc.patch
- bcond: s/pp/ssp/
[packages/dietlibc.git] / dietlibc-ppc.patch
1 diff -uNr dietlibc-0.18.orig/libdl/_dl_rel.h dietlibc-0.18/libdl/_dl_rel.h
2 --- dietlibc-0.23/libdl/_dl_rel.h.orig  2003-02-19 14:18:40.000000000 +0100
3 +++ dietlibc-0.23/libdl/_dl_rel.h       2003-09-13 03:42:07.000000000 +0200
4 @@ -9,7 +9,7 @@
5  
6  #define _DL_REL_PLT(b,r)       (*(unsigned long*)((b)+(r)->r_offset)+=(unsigned long)(b))
7  
8 -#elif defined(__alpha__) || defined(__hppa__) || defined(__ppc__) || defined(__sparc__) || defined(__s390__) \
9 +#elif defined(__alpha__) || defined(__hppa__) || defined(__powerpc__) || defined(__sparc__) || defined(__s390__) \
10    || defined(__x86_64__)
11  /* this are RELA only archs: alpha, chris, hppa, ia64, m68k, ppc, sparc, sparc64, sh, s390, x86_64 */
12  
13 diff -ur dietlibc-0.22/ppc/mmap.S dietlibc-0.22-/ppc/mmap.S
14 --- dietlibc-0.22/ppc/mmap.S    2003-07-01 13:01:26.000000000 +0200
15 +++ dietlibc-0.22-/ppc/mmap.S   2003-07-01 13:01:13.000000000 +0200
16 @@ -0,0 +1,27 @@
17 +        .section        ".text"
18 +        .align 2
19 +        .globl mmap
20 +        .type    mmap,@function
21 +mmap:
22 +        stwu 1,-16(1)
23 +        mflr 0
24 +        stw 31,12(1)
25 +        stw 0,20(1)
26 +        li 0,90
27 +        sc
28 +        mfcr 0
29 +        andis. 9,0,4096
30 +        mr 31,3
31 +        bc 12,2,.L4
32 +        bl __errno_location
33 +        stw 31,0(3)
34 +        li 31,-1
35 +.L4:
36 +        mr 3,31
37 +        lwz 0,20(1)
38 +        mtlr 0
39 +        lwz 31,12(1)
40 +        la 1,16(1)
41 +        blr
42 +.Lfe1:
43 +        .size    mmap,.Lfe1-mmap
44 --- dietlibc-0.24/include/sys/ucontext.h.orig   2003-10-10 15:17:46.000000000 +0200
45 +++ dietlibc-0.24/include/sys/ucontext.h        2003-11-22 18:21:22.390804792 +0100
46 @@ -1,6 +1,13 @@
47  #ifndef _SYS_UCONTEXT_H
48  #define _SYS_UCONTEXT_H
49  
50 +/* follow glibc <bits/sigcontext.h> on ppc: */
51 +#if defined(powerpc) && !defined(sigcontext_struct)
52 +/* Kernel headers before 2.1.1 define a struct sigcontext_struct, but
53 + *    we need sigcontext.  */
54 +# define sigcontext_struct sigcontext
55 +#endif
56 +
57  #include <asm/sigcontext.h>
58  #include <signal.h>
59  
This page took 0.088303 seconds and 3 git commands to generate.