patches/glibc/2.2.5/glibc-2.2.5-allow-gcc-4.0-i386.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 ../sysdeps/i386/dl-machine.h: In function '_dl_relocate_object':
     3 ../sysdeps/i386/dl-machine.h:306: error: invalid storage class for function 'elf_machine_rel'
     4 ../sysdeps/i386/dl-machine.h:385: error: invalid storage class for function 'elf_machine_rel_relative'
     5 ../sysdeps/i386/dl-machine.h:393: error: invalid storage class for function 'elf_machine_lazy_rel'
     6 
     7 when building glibc-2.2.5 with gcc-4.0.
     8 
     9 --- /home/dank/downloads/glibc-2.2.5/sysdeps/i386/dl-machine.h	2001-08-30 16:09:10.000000000 -0700
    10 +++ glibc-2.2.5/sysdeps/i386/dl-machine.h	2005-03-11 14:00:22.601858328 -0800
    11 @@ -298,7 +299,12 @@
    12  /* Perform the relocation specified by RELOC and SYM (which is fully resolved).
    13     MAP is the object containing the reloc.  */
    14  
    15 +#if __GNUC__ >= 4
    16 +auto inline void
    17 +__attribute ((always_inline))
    18 +#else
    19  static inline void
    20 +#endif
    21  elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc,
    22  		 const Elf32_Sym *sym, const struct r_found_version *version,
    23  		 Elf32_Addr *const reloc_addr)
    24 @@ -378,7 +384,12 @@
    25      }
    26  }
    27  
    28 +#if __GNUC__ >= 4
    29 +auto inline void
    30 +__attribute ((always_inline))
    31 +#else
    32  static inline void
    33 +#endif
    34  elf_machine_rel_relative (Elf32_Addr l_addr, const Elf32_Rel *reloc,
    35  			  Elf32_Addr *const reloc_addr)
    36  {
    37 @@ -386,7 +397,12 @@
    38    *reloc_addr += l_addr;
    39  }
    40  
    41 +#if __GNUC__ >= 4
    42 +auto inline void
    43 +__attribute ((always_inline))
    44 +#else
    45  static inline void
    46 +#endif
    47  elf_machine_lazy_rel (struct link_map *map,
    48  		      Elf32_Addr l_addr, const Elf32_Rel *reloc)
    49  {