diff options
Diffstat (limited to 'arch/mips/kernel/binfmt_elfn32.c')
-rw-r--r-- | arch/mips/kernel/binfmt_elfn32.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/mips/kernel/binfmt_elfn32.c b/arch/mips/kernel/binfmt_elfn32.c index 1b992c6e3d8e..58ad63d7eb42 100644 --- a/arch/mips/kernel/binfmt_elfn32.c +++ b/arch/mips/kernel/binfmt_elfn32.c | |||
@@ -30,21 +30,7 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; | |||
30 | /* | 30 | /* |
31 | * This is used to ensure we don't load something for the wrong architecture. | 31 | * This is used to ensure we don't load something for the wrong architecture. |
32 | */ | 32 | */ |
33 | #define elf_check_arch(hdr) \ | 33 | #define elf_check_arch elfn32_check_arch |
34 | ({ \ | ||
35 | int __res = 1; \ | ||
36 | struct elfhdr *__h = (hdr); \ | ||
37 | \ | ||
38 | if (!mips_elf_check_machine(__h)) \ | ||
39 | __res = 0; \ | ||
40 | if (__h->e_ident[EI_CLASS] != ELFCLASS32) \ | ||
41 | __res = 0; \ | ||
42 | if (((__h->e_flags & EF_MIPS_ABI2) == 0) || \ | ||
43 | ((__h->e_flags & EF_MIPS_ABI) != 0)) \ | ||
44 | __res = 0; \ | ||
45 | \ | ||
46 | __res; \ | ||
47 | }) | ||
48 | 34 | ||
49 | #define TASK32_SIZE 0x7fff8000UL | 35 | #define TASK32_SIZE 0x7fff8000UL |
50 | #undef ELF_ET_DYN_BASE | 36 | #undef ELF_ET_DYN_BASE |