patch-2.4.4 linux/include/asm-s390/elf.h

Next file: linux/include/asm-s390/irq.h
Previous file: linux/include/asm-s390/ebcdic.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/include/asm-s390/elf.h linux/include/asm-s390/elf.h
@@ -31,7 +31,8 @@
  * This is used to ensure we don't load something for the wrong architecture.
  */
 #define elf_check_arch(x) \
-	((x)->e_machine == ELF_ARCH && (x)->e_ident[EI_CLASS] == ELF_CLASS) 
+	(((x)->e_machine == EM_S390 || (x)->e_machine == EM_S390_OLD) \
+         && (x)->e_ident[EI_CLASS] == ELF_CLASS) 
 
 /* For SVR4/S390 the function pointer to be registered with `atexit` is
    passed in R14. */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)