1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.2.5/glibc-2.2.5-allow-gcc-4.0-elf-2.patch Tue May 22 20:48:39 2007 +0000
1.3 @@ -0,0 +1,43 @@
1.4 +Fixes
1.5 +dynamic-link.h:38: error: invalid storage class for function 'elf_get_dynamic_info'
1.6 +kinda like http://sourceware.org/cgi-bin/cvsweb.cgi/libc/elf/dynamic-link.h.diff?r1=1.50&r2=1.51&cvsroot=glibc does
1.7 +and fixes
1.8 +In file included from dynamic-link.h:218,
1.9 + from dl-reloc.c:153:
1.10 +do-rel.h:46: error: invalid storage class for function 'elf_dynamic_do_rel'
1.11 +
1.12 +--- /home/dank/downloads/glibc-2.2.5/elf/dynamic-link.h 2001-07-05 21:54:46.000000000 -0700
1.13 ++++ glibc-2.2.5/elf/dynamic-link.h 2005-03-11 14:18:34.542858064 -0800
1.14 +@@ -33,7 +33,16 @@
1.15 +
1.16 + /* Read the dynamic section at DYN and fill in INFO with indices DT_*. */
1.17 +
1.18 ++#if __GNUC__ >= 4
1.19 ++#ifndef RESOLVE_MAP
1.20 ++static
1.21 ++#else
1.22 ++auto
1.23 ++#endif
1.24 ++inline void __attribute__ ((unused, always_inline))
1.25 ++#else
1.26 + static inline void __attribute__ ((unused))
1.27 ++#endif
1.28 + elf_get_dynamic_info (struct link_map *l)
1.29 + {
1.30 + ElfW(Dyn) *dyn = l->l_ld;
1.31 +
1.32 +--- /home/dank/downloads/glibc-2.2.5/elf/do-rel.h 2001-08-24 11:45:23.000000000 -0700
1.33 ++++ glibc-2.2.5/elf/do-rel.h 2005-03-11 14:26:43.538519424 -0800
1.34 +@@ -39,7 +39,12 @@
1.35 + relocations; they should be set up to call _dl_runtime_resolve, rather
1.36 + than fully resolved now. */
1.37 +
1.38 ++#if __GNUC__ >= 4
1.39 ++auto inline void
1.40 ++__attribute ((always_inline))
1.41 ++#else
1.42 + static inline void
1.43 ++#endif
1.44 + elf_dynamic_do_rel (struct link_map *map,
1.45 + ElfW(Addr) reladdr, ElfW(Addr) relsize,
1.46 + int lazy)