]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/glibc/glibc-2.2.5/glibc-2.2.5-allow-gcc-3.4-fixup.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / glibc / glibc-2.2.5 / glibc-2.2.5-allow-gcc-3.4-fixup.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- glibc-2.2.5/sysdeps/i386/dl-machine.h~glibc-2.2.5-allow-gcc-3.4-fixup.patch 2004-09-03 19:00:33.000000000 -0500
7 +++ glibc-2.2.5/sysdeps/i386/dl-machine.h       2004-09-03 19:00:37.000000000 -0500
8 @@ -63,11 +63,12 @@
9     destroys the passed register information.  */
10  /* GKM FIXME: Fix trampoline to pass bounds so we can do
11     without the `__unbounded' qualifier.  */
12 +#define ARCH_FIXUP_ATTRIBUTE __attribute__ ((regparm (3), unused))
13  static ElfW(Addr) fixup (struct link_map *__unbounded l, ElfW(Word) reloc_offset)
14 -     __attribute__ ((regparm (2), unused));
15 +     ARCH_FIXUP_ATTRIBUTE;
16  static ElfW(Addr) profile_fixup (struct link_map *l, ElfW(Word) reloc_offset,
17                                  ElfW(Addr) retaddr)
18 -     __attribute__ ((regparm (3), unused));
19 +     ARCH_FIXUP_ATTRIBUTE;
20  #endif
21  
22  /* Set up the loaded object described by L so its unrelocated PLT
23 --- glibc-2.2.5/elf/dl-runtime.c~glibc-2.2.5-allow-gcc-3.4-fixup.patch  2004-09-03 19:00:33.000000000 -0500
24 +++ glibc-2.2.5/elf/dl-runtime.c        2004-09-03 19:00:37.000000000 -0500
25 @@ -33,6 +33,12 @@
26  # define VERSYMIDX(sym)        (DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGIDX (sym))
27  #endif
28  
29 +/* The fixup functions might have need special attributes.  If none
30 +   are provided define the macro as empty.  */
31 +#ifndef ARCH_FIXUP_ATTRIBUTE
32 +# define ARCH_FIXUP_ATTRIBUTE
33 +#endif
34 +
35  
36  /* This function is called through a special trampoline from the PLT the
37     first time each PLT entry is called.  We must perform the relocation
38 @@ -42,7 +48,7 @@
39     function.  */
40  
41  #ifndef ELF_MACHINE_NO_PLT
42 -static ElfW(Addr) __attribute_used__
43 +static ElfW(Addr) __attribute_used__ ARCH_FIXUP_ATTRIBUTE
44  fixup (
45  # ifdef ELF_MACHINE_RUNTIME_FIXUP_ARGS
46          ELF_MACHINE_RUNTIME_FIXUP_ARGS,
47 @@ -126,7 +132,7 @@
48  
49  #if !defined PROF && !defined ELF_MACHINE_NO_PLT && !__BOUNDED_POINTERS__
50  
51 -static ElfW(Addr) __attribute_used__
52 +static ElfW(Addr) __attribute_used__ ARCH_FIXUP_ATTRIBUTE
53  profile_fixup (
54  #ifdef ELF_MACHINE_RUNTIME_FIXUP_ARGS
55         ELF_MACHINE_RUNTIME_FIXUP_ARGS,