aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-01-02 17:03:11 -0800
committerPaul Mackerras <paulus@samba.org>2008-02-07 20:40:18 +1100
commit01e31dbabc020bf82e7e5359c031a550daafb8ff (patch)
tree0767caaf88e46570c393c7a63e5f8552355da334 /include/asm-powerpc
parent[POWERPC] Switch to using user_regset-based core dumps (diff)
downloadlinux-dev-01e31dbabc020bf82e7e5359c031a550daafb8ff.tar.xz
linux-dev-01e31dbabc020bf82e7e5359c031a550daafb8ff.zip
[POWERPC] Switch to generic compat_binfmt_elf code
This switches the CONFIG_PPC64 support for 32-bit ELF to use the generic fs/compat_binfmt_elf.c implementation instead of our own binfmt_elf32.c. Since so much is the same between 32/64, there is only one macro we have to define to make the generic support work out of the box. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/elf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-powerpc/elf.h b/include/asm-powerpc/elf.h
index fd9bf8b39424..9080d85cb9d0 100644
--- a/include/asm-powerpc/elf.h
+++ b/include/asm-powerpc/elf.h
@@ -165,6 +165,7 @@ typedef elf_vrreg_t elf_vrregset_t32[ELF_NVRREG32];
* This is used to ensure we don't load something for the wrong architecture.
*/
#define elf_check_arch(x) ((x)->e_machine == ELF_ARCH)
+#define compat_elf_check_arch(x) ((x)->e_machine == EM_PPC)
#define USE_ELF_CORE_DUMP
#define CORE_DUMP_USE_REGSET