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>
Thu May 17 16:22:51 2007 +0000 (2007-05-17)
changeset 96 aa1a9fbd6eb8
permissions -rw-r--r--
Debug facilities:
- add a framework to easily add new ones
- add gdb as a first debug facility
- add patches for gdb
After the kernel checked its installed headers, clean up the mess of .checked.* files.
Reorder scripts/crosstool.sh:
- dump the configuration early
- renice early
- get info about build system early, when setting up the environment
- when in cross or native, the host tools are those of the build system, and only in this case
- elapsed time calculations moved to scripts/functions
Remove handling of the color: it's gone once and for all.
Update tools/addToolVersion.sh:
- handle debug facilities
- commonalise some code
- remove dead tools (cygwin, tcc)
Point to my address for bug reports.
     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  {