1.1 --- a/patches/glibc/2.3.3/glibc-2.3.3-allow-gcc-4.0-i386.patch Tue Aug 14 19:32:22 2007 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,111 +0,0 @@
1.4 -Fixes
1.5 -
1.6 -In file included from dynamic-link.h:22,
1.7 - from dl-reloc.c:265:
1.8 -../sysdeps/i386/dl-machine.h: In function '_dl_relocate_object':
1.9 -../sysdeps/i386/dl-machine.h:395: error: invalid storage class for function 'elf_machine_rel'
1.10 -../sysdeps/i386/dl-machine.h:539: error: invalid storage class for function 'elf_machine_rela'
1.11 -../sysdeps/i386/dl-machine.h:640: error: invalid storage class for function 'elf_machine_rel_relative'
1.12 -../sysdeps/i386/dl-machine.h:650: error: invalid storage class for function 'elf_machine_rela_relative'
1.13 -../sysdeps/i386/dl-machine.h:659: error: invalid storage class for function 'elf_machine_lazy_rel'
1.14 -../sysdeps/i386/dl-machine.h:680: error: invalid storage class for function 'elf_machine_lazy_rela'
1.15 -make[2]: *** [/home/dank/queue/jobdir.dual2/crosstool-dev/build/i686-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3.3/build-glibc/elf/dl-reloc.o] Error 1
1.16 -
1.17 ---- glibc-2.3.3/sysdeps/i386/dl-machine.h.old Wed Mar 16 22:24:09 2005
1.18 -+++ glibc-2.3.3/sysdeps/i386/dl-machine.h Thu Mar 17 01:30:09 2005
1.19 -@@ -385,7 +385,14 @@
1.20 - /* Perform the relocation specified by RELOC and SYM (which is fully resolved).
1.21 - MAP is the object containing the reloc. */
1.22 -
1.23 --static inline void
1.24 -+#if __GNUC__ >= 4
1.25 -+ auto inline void
1.26 -+#else
1.27 -+ static inline void
1.28 -+#endif
1.29 -+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
1.30 -+ __attribute ((always_inline))
1.31 -+#endif
1.32 - elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc,
1.33 - const Elf32_Sym *sym, const struct r_found_version *version,
1.34 - void *const reloc_addr_arg)
1.35 -@@ -529,7 +536,14 @@
1.36 - }
1.37 -
1.38 - #ifndef RTLD_BOOTSTRAP
1.39 --static inline void
1.40 -+#if __GNUC__ >= 4
1.41 -+ auto inline void
1.42 -+#else
1.43 -+ static inline void
1.44 -+#endif
1.45 -+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
1.46 -+ __attribute ((always_inline))
1.47 -+#endif
1.48 - elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
1.49 - const Elf32_Sym *sym, const struct r_found_version *version,
1.50 - void *const reloc_addr_arg)
1.51 -@@ -631,7 +645,14 @@
1.52 - }
1.53 - #endif /* !RTLD_BOOTSTRAP */
1.54 -
1.55 --static inline void
1.56 -+#if __GNUC__ >= 4
1.57 -+ auto inline void
1.58 -+#else
1.59 -+ static inline void
1.60 -+#endif
1.61 -+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
1.62 -+ __attribute ((always_inline))
1.63 -+#endif
1.64 - elf_machine_rel_relative (Elf32_Addr l_addr, const Elf32_Rel *reloc,
1.65 - void *const reloc_addr_arg)
1.66 - {
1.67 -@@ -641,7 +662,14 @@
1.68 - }
1.69 -
1.70 - #ifndef RTLD_BOOTSTRAP
1.71 --static inline void
1.72 -+#if __GNUC__ >= 4
1.73 -+ auto inline void
1.74 -+#else
1.75 -+ static inline void
1.76 -+#endif
1.77 -+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
1.78 -+ __attribute ((always_inline))
1.79 -+#endif
1.80 - elf_machine_rela_relative (Elf32_Addr l_addr, const Elf32_Rela *reloc,
1.81 - void *const reloc_addr_arg)
1.82 - {
1.83 -@@ -650,7 +678,14 @@
1.84 - }
1.85 - #endif /* !RTLD_BOOTSTRAP */
1.86 -
1.87 --static inline void
1.88 -+#if __GNUC__ >= 4
1.89 -+ auto inline void
1.90 -+#else
1.91 -+ static inline void
1.92 -+#endif
1.93 -+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
1.94 -+ __attribute ((always_inline))
1.95 -+#endif
1.96 - elf_machine_lazy_rel (struct link_map *map,
1.97 - Elf32_Addr l_addr, const Elf32_Rel *reloc)
1.98 - {
1.99 -@@ -671,7 +706,14 @@
1.100 -
1.101 - #ifndef RTLD_BOOTSTRAP
1.102 -
1.103 --static inline void
1.104 -+#if __GNUC__ >= 4
1.105 -+ auto inline void
1.106 -+#else
1.107 -+ static inline void
1.108 -+#endif
1.109 -+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
1.110 -+ __attribute ((always_inline))
1.111 -+#endif
1.112 - elf_machine_lazy_rela (struct link_map *map,
1.113 - Elf32_Addr l_addr, const Elf32_Rela *reloc)
1.114 - {