summaryrefslogtreecommitdiff
path: root/include/asm-m68k
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-03-17 21:13:21 -0800
committerDave Jones <davej@codemonkey.org.uk>2003-03-17 21:13:21 -0800
commit544db1a2d5b3ddc331bbb3370a4092475141e67d (patch)
tree84550943dfdabcb9e19963c04b74256b2f76b09e /include/asm-m68k
parenteb5ef7e66dbe106b996a8b4ec18d5bb57b2b81f2 (diff)
[PATCH] Pass the load address into ELF_PLAT_INIT()
Patch from Anton Blanchard <anton@samba.org> With ppc64 64bit dynamic executables we have to relocate the contents of the function descriptor. Passing in the load address to ELF_PLAT_INIT allows us to do this. The patch allows ppc64 to run 64-bit executables and is a no-op for other architectures.
Diffstat (limited to 'include/asm-m68k')
-rw-r--r--include/asm-m68k/elf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-m68k/elf.h b/include/asm-m68k/elf.h
index e2743983c3ba..48fa3301dcba 100644
--- a/include/asm-m68k/elf.h
+++ b/include/asm-m68k/elf.h
@@ -31,7 +31,7 @@ typedef struct user_m68kfp_struct elf_fpregset_t;
/* For SVR4/m68k the function pointer to be registered with `atexit' is
passed in %a1. Although my copy of the ABI has no such statement, it
is actually used on ASV. */
-#define ELF_PLAT_INIT(_r) _r->a1 = 0
+#define ELF_PLAT_INIT(_r, load_addr) _r->a1 = 0
#define USE_ELF_CORE_DUMP
#ifndef CONFIG_SUN3