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

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)