summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-mips/elf.h')
-rw-r--r--include/asm-mips/elf.h15
1 files changed, 2 insertions, 13 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.