diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-03-09 07:44:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-03-09 07:44:07 +0000 |
commit | 1e5f1d862bb36bd6e4e50126e5e693fe8cbd0201 (patch) | |
tree | b322982a520c39ea26741fcf0ba2f0f8162742fb /sysdeps/i386/dl-machine.h | |
parent | 6fadea9f1d26e09e7da4c4c6ae2ba976fef73c25 (diff) | |
download | glibc-1e5f1d862bb36bd6e4e50126e5e693fe8cbd0201.tar.gz glibc-1e5f1d862bb36bd6e4e50126e5e693fe8cbd0201.tar.xz glibc-1e5f1d862bb36bd6e4e50126e5e693fe8cbd0201.zip |
Update.
* sysdeps/i386/dl-machine.h: Define ARCH_FIXUP_ATTRIBUTE and use it in the fixup function declarations. * elf/dl-runtime.c: If ARCH_FIXUP_ATTRIBUTE is not defined, provide dummy definition. Use macro in fixup function definitions.
Diffstat (limited to 'sysdeps/i386/dl-machine.h')
-rw-r--r-- | sysdeps/i386/dl-machine.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sysdeps/i386/dl-machine.h b/sysdeps/i386/dl-machine.h index 6ba13c4b01..26abbfb64a 100644 --- a/sysdeps/i386/dl-machine.h +++ b/sysdeps/i386/dl-machine.h @@ -154,11 +154,14 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile) destroys the passed register information. */ /* GKM FIXME: Fix trampoline to pass bounds so we can do without the `__unbounded' qualifier. */ -static ElfW(Addr) fixup (struct link_map *__unbounded l, ElfW(Word) reloc_offset) - __attribute__ ((regparm (2), unused)); +#define ARCH_FIXUP_ATTRIBUTE __attribute__ ((regparm (3), unused)) + +static ElfW(Addr) fixup (struct link_map *__unbounded l, + ElfW(Word) reloc_offset) + ARCH_FIXUP_ATTRIBUTE; static ElfW(Addr) profile_fixup (struct link_map *l, ElfW(Word) reloc_offset, ElfW(Addr) retaddr) - __attribute__ ((regparm (3), unused)); + ARCH_FIXUP_ATTRIBUTE; # endif /* This code is used in dl-runtime.c to call the `fixup' function |