aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-03-09 07:44:07 +0000
committerUlrich Drepper <drepper@redhat.com>2004-03-09 07:44:07 +0000
commit1e5f1d862bb36bd6e4e50126e5e693fe8cbd0201 (patch)
treeb322982a520c39ea26741fcf0ba2f0f8162742fb /sysdeps/i386
parent6fadea9f1d26e09e7da4c4c6ae2ba976fef73c25 (diff)
downloadglibc-1e5f1d862bb36bd6e4e50126e5e693fe8cbd0201.tar
glibc-1e5f1d862bb36bd6e4e50126e5e693fe8cbd0201.tar.gz
glibc-1e5f1d862bb36bd6e4e50126e5e693fe8cbd0201.tar.bz2
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')
-rw-r--r--sysdeps/i386/dl-machine.h9
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