summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-07-13 02:36:17 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-07-13 02:36:17 +0000
commitb0ada65f83666487d2f09c7153b28b38fdbbfcd4 (patch)
tree679f7c45d9b77d28a4a462f2a77a108686c9c4f1 /arch
parent68c4e687bc1c330f12f612a3d89f1becaf761c5b (diff)
Fixup the recent ELF loader changes which were toast ...
Diffstat (limited to 'arch')
-rw-r--r--arch/mips64/kernel/binfmt_elf32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips64/kernel/binfmt_elf32.c b/arch/mips64/kernel/binfmt_elf32.c
index a199839a6..fd68241f4 100644
--- a/arch/mips64/kernel/binfmt_elf32.c
+++ b/arch/mips64/kernel/binfmt_elf32.c
@@ -1,5 +1,4 @@
-/* $Id: binfmt_elf32.c,v 1.1 1999/11/24 06:56:13 ralf Exp $
- *
+/*
* Support for 32-bit Linux/MIPS ELF binaries.
*
* Copyright (C) 1999 Ralf Baechle
@@ -28,7 +27,8 @@ typedef elf_greg_t elf_gregset_t[ELF_NGREG];
typedef double elf_fpreg_t;
typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
-#define elf_check_arch(x) ((x) == EM_MIPS || (x) == EM_MIPS_RS4_BE)
+#define elf_check_arch(x) \
+ ((x)->e_machine == EM_MIPS || (x)->e_machine == EM_MIPS_RS4_BE)
#define TASK32_SIZE 0x80000000UL
#undef ELF_ET_DYN_BASE