patch-2.4.0-test6 linux/include/asm-mips64/elf.h
Next file: linux/include/asm-mips64/hardirq.h
Previous file: linux/include/asm-mips/system.h
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Thu Jul 27 18:36:54 2000
- Orig file:
v2.4.0-test5/linux/include/asm-mips64/elf.h
- Orig date:
Fri Jul 14 12:12:15 2000
diff -u --recursive --new-file v2.4.0-test5/linux/include/asm-mips64/elf.h linux/include/asm-mips64/elf.h
@@ -26,14 +26,15 @@
*/
#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)) \
- __res = -ENOEXEC; \
+ if ((__h->e_machine != EM_MIPS) && \
+ (__h->e_machine != EM_MIPS_RS4_BE)) \
+ __res = 0; \
if (sizeof(elf_caddr_t) == 8 && \
__h->e_ident[EI_CLASS] == ELFCLASS32) \
- __res = -ENOEXEC; \
+ __res = 0; \
\
__res; \
})
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)