patches/glibc/2.3.4/glibc-2.3.4-allow-gcc-4.0-powerpc64.patch
changeset 330 447b203edc2e
parent 329 419d959441ed
child 331 0c05f9ea3254
     1.1 --- a/patches/glibc/2.3.4/glibc-2.3.4-allow-gcc-4.0-powerpc64.patch	Tue Aug 14 19:32:22 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,60 +0,0 @@
     1.4 -Fixes:
     1.5 -
     1.6 -In file included from dynamic-link.h:22,
     1.7 -                 from dl-reloc.c:269:
     1.8 -../sysdeps/powerpc/powerpc64/dl-machine.h: In function '_dl_relocate_object':
     1.9 -../sysdeps/powerpc/powerpc64/dl-machine.h:573: error: invalid storage class for function 'elf_machine_rela_relative'
    1.10 -../sysdeps/powerpc/powerpc64/dl-machine.h:607: error: invalid storage class for function 'elf_machine_rela'
    1.11 -../sysdeps/powerpc/powerpc64/dl-machine.h:889: error: invalid storage class for function 'elf_machine_lazy_rel'
    1.12 -make[2]: Leaving directory `/home/dank/queue/jobdir.fast2/crosstool-dev/build/powerpc64-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3-20050307/glibc-2.3-20050307/elf'
    1.13 -
    1.14 ---- glibc-2.3-20050307/sysdeps/powerpc/powerpc64/dl-machine.h.old	Thu Mar 17 13:35:23 2005
    1.15 -+++ glibc-2.3-20050307/sysdeps/powerpc/powerpc64/dl-machine.h	Thu Mar 17 13:37:12 2005
    1.16 -@@ -567,7 +567,14 @@
    1.17 -                                 const Elf64_Sym *refsym)
    1.18 -                                 attribute_hidden;
    1.19 - 
    1.20 --static inline void
    1.21 -+#if __GNUC__ >= 4
    1.22 -+  auto inline void
    1.23 -+#else
    1.24 -+  static inline void
    1.25 -+#endif
    1.26 -+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
    1.27 -+  __attribute ((always_inline))
    1.28 -+#endif
    1.29 - elf_machine_rela_relative (Elf64_Addr l_addr, const Elf64_Rela *reloc,
    1.30 - 			   void *const reloc_addr_arg)
    1.31 - {
    1.32 -@@ -598,7 +605,14 @@
    1.33 - 
    1.34 - /* Perform the relocation specified by RELOC and SYM (which is fully
    1.35 -    resolved).  MAP is the object containing the reloc.  */
    1.36 --static inline void
    1.37 -+#if __GNUC__ >= 4
    1.38 -+  auto inline void
    1.39 -+#else
    1.40 -+  static inline void
    1.41 -+#endif
    1.42 -+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
    1.43 -+  __attribute ((always_inline))
    1.44 -+#endif
    1.45 - elf_machine_rela (struct link_map *map,
    1.46 - 		  const Elf64_Rela *reloc,
    1.47 - 		  const Elf64_Sym *sym,
    1.48 -@@ -883,7 +897,14 @@
    1.49 -   MODIFIED_CODE_NOQUEUE (reloc_addr);
    1.50 - }
    1.51 - 
    1.52 --static inline void
    1.53 -+#if __GNUC__ >= 4
    1.54 -+  auto inline void
    1.55 -+#else
    1.56 -+  static inline void
    1.57 -+#endif
    1.58 -+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
    1.59 -+  __attribute ((always_inline))
    1.60 -+#endif
    1.61 - elf_machine_lazy_rel (struct link_map *map,
    1.62 - 		      Elf64_Addr l_addr, const Elf64_Rela *reloc)
    1.63 - {