1.1 --- a/patches/glibc/2.3.6/170-allow-gcc-4.0-arm.patch Mon Jan 03 22:02:06 2011 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,35 +0,0 @@
1.4 -Fixes
1.5 -In file included from dynamic-link.h:22,
1.6 - from dl-reloc.c:265:
1.7 -../sysdeps/arm/dl-machine.h: In function '_dl_relocate_object':
1.8 -../sysdeps/arm/dl-machine.h:371: error: invalid storage class for function 'fix_bad_pc24'
1.9 -make[2]: Leaving directory `/home/dank/queue/jobdir.k8/crosstool-dev/build/arm-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3.6/glibc-2.3.6/elf'
1.10 -
1.11 -when building glibc-2.3.6 with gcc-4.0
1.12 -
1.13 -Like
1.14 -http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/arm/dl-machine.h.diff?r1=1.51&r2=1.52&cvsroot=glibc
1.15 -but fixes fix_bad_pc24.
1.16 -
1.17 -
1.18 ---- glibc-2.3.6-orig/sysdeps/arm/dl-machine.h Sun Mar 20 17:54:37 2005
1.19 -+++ glibc-2.3.6/sysdeps/arm/dl-machine.h Sun Mar 20 17:57:32 2005
1.20 -@@ -357,7 +357,14 @@
1.21 - #ifdef RESOLVE
1.22 -
1.23 - /* Deal with an out-of-range PC24 reloc. */
1.24 --static Elf32_Addr
1.25 -+#if __GNUC__ >= 4
1.26 -+ auto inline Elf32_Addr
1.27 -+#else
1.28 -+ static inline Elf32_Addr
1.29 -+#endif
1.30 -+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
1.31 -+ __attribute ((always_inline))
1.32 -+#endif
1.33 - fix_bad_pc24 (Elf32_Addr *const reloc_addr, Elf32_Addr value)
1.34 - {
1.35 - static void *fix_page;
1.36 -
1.37 -Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
1.38 -with a little editing by dank@kegel.com