diff options
Diffstat (limited to 'include/asm-mips/elf.h')
-rw-r--r-- | include/asm-mips/elf.h | 20 |
1 files changed, 11 insertions, 9 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 */ |