summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-07-13 03:39:37 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-07-13 03:39:37 +0000
commit08b251b02e9529353f6fcfbec55ec1f3d5187f67 (patch)
tree29747064c4e0b96560e990196725c7200d45f491
parent99fd54edfa5660e41201b2ec76dfdfec027c7ad6 (diff)
Another reversed condition.
-rw-r--r--include/asm-mips/elf.h20
-rw-r--r--include/asm-mips64/elf.h6
2 files changed, 14 insertions, 12 deletions
diff --git a/include/asm-mips/elf.h b/include/asm-mips/elf.h
index 725edbb39..adaba397a 100644
--- a/include/asm-mips/elf.h
+++ b/include/asm-mips/elf.h
@@ -1,8 +1,10 @@
/*
- * $Id: elf.h,v 1.6 1999/02/15 02:22:10 ralf Exp $
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
*/
-#ifndef __ASM_MIPS_ELF_H
-#define __ASM_MIPS_ELF_H
+#ifndef __ASM_ELF_H
+#define __ASM_ELF_H
/* ELF register definitions */
#define ELF_NGREG 45
@@ -20,14 +22,14 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
*/
#define elf_check_arch(hdr) \
({ \
- int __res = 0; \
+ int __res = 1; \
struct elfhdr *__h = (hdr); \
\
if ((__h->e_machine != EM_MIPS) && \
(__h->e_machine != EM_MIPS_RS4_BE)) \
- __res = -ENOEXEC; \
+ __res = 0; \
if (__h->e_flags & EF_MIPS_ARCH) \
- __res = -ENOEXEC; \
+ __res = 0; \
\
__res; \
})
@@ -35,12 +37,12 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
/* This one accepts IRIX binaries. */
#define irix_elf_check_arch(hdr) \
({ \
- int __res = 0; \
+ int __res = 1; \
struct elfhdr *__h = (hdr); \
\
if ((__h->e_machine != EM_MIPS) && \
(__h->e_machine != EM_MIPS_RS4_BE)) \
- __res = -ENOEXEC; \
+ __res = 0; \
\
__res; \
})
@@ -104,4 +106,4 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
#define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
#endif
-#endif /* __ASM_MIPS_ELF_H */
+#endif /* __ASM_ELF_H */
diff --git a/include/asm-mips64/elf.h b/include/asm-mips64/elf.h
index 292ab00f5..3ab76a80b 100644
--- a/include/asm-mips64/elf.h
+++ b/include/asm-mips64/elf.h
@@ -26,15 +26,15 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
*/
#define elf_check_arch(hdr) \
({ \
- int __res = 0; \
+ int __res = 1; \
struct elfhdr *__h = (hdr); \
\
if ((__h->e_machine != EM_MIPS) && \
(__h->e_machine != EM_MIPS_RS4_BE)) \
- __res = -ENOEXEC; \
+ __res = 0; \
if (sizeof(elf_caddr_t) == 8 && \
__h->e_ident[EI_CLASS] == ELFCLASS32) \
- __res = -ENOEXEC; \
+ __res = 0; \
\
__res; \
})