patches/glibc/2.3.3/glibc-2.3.4-allow-gcc-4.0-powerpc64.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 Fixes:
     2 
     3 In file included from dynamic-link.h:22,
     4                  from dl-reloc.c:269:
     5 ../sysdeps/powerpc/powerpc64/dl-machine.h: In function '_dl_relocate_object':
     6 ../sysdeps/powerpc/powerpc64/dl-machine.h:573: error: invalid storage class for function 'elf_machine_rela_relative'
     7 ../sysdeps/powerpc/powerpc64/dl-machine.h:607: error: invalid storage class for function 'elf_machine_rela'
     8 ../sysdeps/powerpc/powerpc64/dl-machine.h:889: error: invalid storage class for function 'elf_machine_lazy_rel'
     9 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'
    10 
    11 --- glibc-2.3-20050307/sysdeps/powerpc/powerpc64/dl-machine.h.old	Thu Mar 17 13:35:23 2005
    12 +++ glibc-2.3-20050307/sysdeps/powerpc/powerpc64/dl-machine.h	Thu Mar 17 13:37:12 2005
    13 @@ -567,7 +567,14 @@
    14                                  const Elf64_Sym *refsym)
    15                                  attribute_hidden;
    16  
    17 -static inline void
    18 +#if __GNUC__ >= 4
    19 +  auto inline void
    20 +#else
    21 +  static inline void
    22 +#endif
    23 +#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
    24 +  __attribute ((always_inline))
    25 +#endif
    26  elf_machine_rela_relative (Elf64_Addr l_addr, const Elf64_Rela *reloc,
    27  			   void *const reloc_addr_arg)
    28  {
    29 @@ -598,7 +605,14 @@
    30  
    31  /* Perform the relocation specified by RELOC and SYM (which is fully
    32     resolved).  MAP is the object containing the reloc.  */
    33 -static inline void
    34 +#if __GNUC__ >= 4
    35 +  auto inline void
    36 +#else
    37 +  static inline void
    38 +#endif
    39 +#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
    40 +  __attribute ((always_inline))
    41 +#endif
    42  elf_machine_rela (struct link_map *map,
    43  		  const Elf64_Rela *reloc,
    44  		  const Elf64_Sym *sym,
    45 @@ -883,7 +897,14 @@
    46    MODIFIED_CODE_NOQUEUE (reloc_addr);
    47  }
    48  
    49 -static inline void
    50 +#if __GNUC__ >= 4
    51 +  auto inline void
    52 +#else
    53 +  static inline void
    54 +#endif
    55 +#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
    56 +  __attribute ((always_inline))
    57 +#endif
    58  elf_machine_lazy_rel (struct link_map *map,
    59  		      Elf64_Addr l_addr, const Elf64_Rela *reloc)
    60  {