1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.3.3/glibc-2.3.4-allow-gcc-4.0-powerpc32.patch Tue May 29 19:30:38 2007 +0000
1.3 @@ -0,0 +1,42 @@
1.4 +Fixes
1.5 +
1.6 +../sysdeps/powerpc/powerpc32/dl-machine.h: In function '_dl_relocate_object':
1.7 +../sysdeps/powerpc/powerpc32/dl-machine.h:461: error: invalid storage class for function 'elf_machine_rela_relative'
1.8 +../sysdeps/powerpc/powerpc32/dl-machine.h:469: error: invalid storage class for function 'elf_machine_lazy_rel'
1.9 +make[2]: *** [/home/dank/queue/jobdir.dual2/crosstool-dev/build/powerpc-750-linux-gnu/gcc-4.0-20050305-glibc-2.3-20050307/build-glibc/elf/dl-reloc.o] Error 1
1.10 +
1.11 +diff -ur glibc-2.3-20050307.orig/sysdeps/powerpc/powerpc32/dl-machine.h glibc-2.3-20050307/sysdeps/powerpc/powerpc32/dl-machine.h
1.12 +--- glibc-2.3-20050307.orig/sysdeps/powerpc/powerpc32/dl-machine.h Wed Jul 30 23:33:52 2003
1.13 ++++ glibc-2.3-20050307/sysdeps/powerpc/powerpc32/dl-machine.h Thu Mar 17 13:19:16 2005
1.14 +@@ -455,7 +455,14 @@
1.15 + }
1.16 + }
1.17 +
1.18 +-static inline void
1.19 ++#if __GNUC__ >= 4
1.20 ++ auto inline void
1.21 ++#else
1.22 ++ static inline void
1.23 ++#endif
1.24 ++#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
1.25 ++ __attribute ((always_inline))
1.26 ++#endif
1.27 + elf_machine_rela_relative (Elf32_Addr l_addr, const Elf32_Rela *reloc,
1.28 + void *const reloc_addr_arg)
1.29 + {
1.30 +@@ -463,7 +470,14 @@
1.31 + *reloc_addr = l_addr + reloc->r_addend;
1.32 + }
1.33 +
1.34 +-static inline void
1.35 ++#if __GNUC__ >= 4
1.36 ++ auto inline void
1.37 ++#else
1.38 ++ static inline void
1.39 ++#endif
1.40 ++#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
1.41 ++ __attribute ((always_inline))
1.42 ++#endif
1.43 + elf_machine_lazy_rel (struct link_map *map,
1.44 + Elf32_Addr l_addr, const Elf32_Rela *reloc)
1.45 + {