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
6 #define _DL_REL_PLT(b,r) (*(unsigned long*)((b)+(r)->r_offset)+=(unsigned long)(b))
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 */
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
20 + .type mmap,@function
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
47 #ifndef _SYS_UCONTEXT_H
48 #define _SYS_UCONTEXT_H
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
57 #include <asm/sigcontext.h>