diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips/elf.h | 15 | ||||
-rw-r--r-- | include/asm-mips64/elf.h | 3 |
2 files changed, 3 insertions, 15 deletions
diff --git a/include/asm-mips/elf.h b/include/asm-mips/elf.h index adaba397a..9f13f7299 100644 --- a/include/asm-mips/elf.h +++ b/include/asm-mips/elf.h @@ -25,8 +25,7 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; int __res = 1; \ struct elfhdr *__h = (hdr); \ \ - if ((__h->e_machine != EM_MIPS) && \ - (__h->e_machine != EM_MIPS_RS4_BE)) \ + if (__h->e_machine != EM_MIPS) \ __res = 0; \ if (__h->e_flags & EF_MIPS_ARCH) \ __res = 0; \ @@ -35,17 +34,7 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; }) /* This one accepts IRIX binaries. */ -#define irix_elf_check_arch(hdr) \ -({ \ - int __res = 1; \ - struct elfhdr *__h = (hdr); \ - \ - if ((__h->e_machine != EM_MIPS) && \ - (__h->e_machine != EM_MIPS_RS4_BE)) \ - __res = 0; \ - \ - __res; \ -}) +#define irix_elf_check_arch(hdr) ((hdr)->e_machine == EM_MIPS) /* * These are used to set parameters in the core dumps. diff --git a/include/asm-mips64/elf.h b/include/asm-mips64/elf.h index 3ab76a80b..f1449ddeb 100644 --- a/include/asm-mips64/elf.h +++ b/include/asm-mips64/elf.h @@ -29,8 +29,7 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; int __res = 1; \ struct elfhdr *__h = (hdr); \ \ - if ((__h->e_machine != EM_MIPS) && \ - (__h->e_machine != EM_MIPS_RS4_BE)) \ + if (__h->e_machine != EM_MIPS) \ __res = 0; \ if (sizeof(elf_caddr_t) == 8 && \ __h->e_ident[EI_CLASS] == ELFCLASS32) \ |