CVSROOT: /home/cvs
Module name: linux
Changes by: sjhill@ftp.linux-mips.org 05/01/06 04:12:27
Modified files:
include/asm-mips: elf.h
Log message:
Add in new check for IRIX binaries and needed flag.
diff -urN linux/include/asm-mips/elf.h linux/include/asm-mips/elf.h
--- linux/include/asm-mips/elf.h 2004/12/03 10:20:19 1.22
+++ linux/include/asm-mips/elf.h 2005/01/06 04:12:26 1.23
@@ -41,9 +41,10 @@
#define DT_MIPS_ICHECKSUM 0x70000003
#define DT_MIPS_IVERSION 0x70000004
#define DT_MIPS_FLAGS 0x70000005
- #define RHF_NONE 0
- #define RHF_HARDWAY 1
- #define RHF_NOTPOT 2
+ #define RHF_NONE 0x00000000
+ #define RHF_HARDWAY 0x00000001
+ #define RHF_NOTPOT 0x00000002
+ #define RHF_SGI_ONLY 0x00000010
#define DT_MIPS_BASE_ADDRESS 0x70000006
#define DT_MIPS_CONFLICT 0x70000008
#define DT_MIPS_LIBLIST 0x70000009
@@ -226,7 +227,7 @@
#endif /* __KERNEL__ */
/* This one accepts IRIX binaries. */
-#define irix_elf_check_arch(hdr) ((hdr)->e_machine == EM_MIPS)
+#define irix_elf_check_arch(hdr) ((hdr)->e_flags & RHF_SGI_ONLY)
#define USE_ELF_CORE_DUMP
#define ELF_EXEC_PAGESIZE PAGE_SIZE
|