3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
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
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,
18 - __attribute__ ((regparm (3), unused));
19 + ARCH_FIXUP_ATTRIBUTE;
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
26 # define VERSYMIDX(sym) (DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGIDX (sym))
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
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
41 #ifndef ELF_MACHINE_NO_PLT
42 -static ElfW(Addr) __attribute_used__
43 +static ElfW(Addr) __attribute_used__ ARCH_FIXUP_ATTRIBUTE
45 # ifdef ELF_MACHINE_RUNTIME_FIXUP_ARGS
46 ELF_MACHINE_RUNTIME_FIXUP_ARGS,
49 #if !defined PROF && !defined ELF_MACHINE_NO_PLT && !__BOUNDED_POINTERS__
51 -static ElfW(Addr) __attribute_used__
52 +static ElfW(Addr) __attribute_used__ ARCH_FIXUP_ATTRIBUTE
54 #ifdef ELF_MACHINE_RUNTIME_FIXUP_ARGS
55 ELF_MACHINE_RUNTIME_FIXUP_ARGS,