linux-cvs-patches
[Top] [All Lists]

CVS Update@linux-mips.org: linux

To: linux-cvs-patches@linux-mips.org
Subject: CVS Update@linux-mips.org: linux
From: sjhill@linux-mips.org
Date: Thu, 06 Jan 2005 04:12:33 +0000
Reply-to: linux-mips@linux-mips.org
Sender: linux-cvs-patches-bounce@linux-mips.org
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

<Prev in Thread] Current Thread [Next in Thread>