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: ths@linux-mips.org
Date: Thu, 21 Jul 2005 16:33:59 +0100
Reply-to: linux-mips@linux-mips.org
Sender: linux-cvs-patches-bounce@linux-mips.org
CVSROOT:        /home/cvs
Module name:    linux
Changes by:     ths@ftp.linux-mips.org  05/07/21 16:33:53

Modified files:
        arch/mips/kernel: binfmt_elfo32.c 
        include/asm-mips: elf.h 

Log message:
        Fix ELF defines: EF_* is a field, E_* a distinct flag therein.

diff -urN linux/arch/mips/kernel/binfmt_elfo32.c 
linux/arch/mips/kernel/binfmt_elfo32.c
--- linux/arch/mips/kernel/binfmt_elfo32.c      2005/07/11 10:03:25     1.7
+++ linux/arch/mips/kernel/binfmt_elfo32.c      2005/07/21 15:33:53     1.8
@@ -42,7 +42,7 @@
        if ((__h->e_flags & EF_MIPS_ABI2) != 0)                         \
                __res = 0;                                              \
        if (((__h->e_flags & EF_MIPS_ABI) != 0) &&                      \
-           ((__h->e_flags & EF_MIPS_ABI) != EF_MIPS_ABI_O32))          \
+           ((__h->e_flags & EF_MIPS_ABI) != E_MIPS_ABI_O32))           \
                __res = 0;                                              \
                                                                        \
        __res;                                                          \
diff -urN linux/include/asm-mips/elf.h linux/include/asm-mips/elf.h
--- linux/include/asm-mips/elf.h        2005/07/14 12:05:09     1.31
+++ linux/include/asm-mips/elf.h        2005/07/21 15:33:53     1.32
@@ -11,20 +11,20 @@
 #include <linux/config.h>
 
 /* ELF header e_flags defines. */
-/* MIPS architecture level. */
-#define EF_MIPS_ARCH_1         0x00000000      /* -mips1 code.  */
-#define EF_MIPS_ARCH_2         0x10000000      /* -mips2 code.  */
-#define EF_MIPS_ARCH_3         0x20000000      /* -mips3 code.  */
-#define EF_MIPS_ARCH_4         0x30000000      /* -mips4 code.  */
-#define EF_MIPS_ARCH_5         0x40000000      /* -mips5 code.  */
-#define EF_MIPS_ARCH_32                0x50000000      /* MIPS32 code.  */
-#define EF_MIPS_ARCH_64                0x60000000      /* MIPS64 code.  */
-#define EF_MIPS_ARCH_32R2      0x70000000      /* MIPS32 R2 code.  */
-#define EF_MIPS_ARCH_64R2      0x80000000      /* MIPS64 R2 code.  */
+/* MIPS architecture level. Also see EF_MIPS_ARCH. */
+#define E_MIPS_ARCH_1          0x00000000      /* -mips1 code.  */
+#define E_MIPS_ARCH_2          0x10000000      /* -mips2 code.  */
+#define E_MIPS_ARCH_3          0x20000000      /* -mips3 code.  */
+#define E_MIPS_ARCH_4          0x30000000      /* -mips4 code.  */
+#define E_MIPS_ARCH_5          0x40000000      /* -mips5 code.  */
+#define E_MIPS_ARCH_32         0x50000000      /* MIPS32 code.  */
+#define E_MIPS_ARCH_64         0x60000000      /* MIPS64 code.  */
+#define E_MIPS_ARCH_32R2       0x70000000      /* MIPS32 R2 code.  */
+#define E_MIPS_ARCH_64R2       0x80000000      /* MIPS64 R2 code.  */
 
 /* The ABI of a file. */
-#define EF_MIPS_ABI_O32                0x00001000      /* O32 ABI.  */
-#define EF_MIPS_ABI_O64                0x00002000      /* O32 extended for 64 
bit.  */
+#define E_MIPS_ABI_O32         0x00001000      /* O32 ABI.  */
+#define E_MIPS_ABI_O64         0x00002000      /* O32 extended for 64 bit.  */
 
 #define PT_MIPS_REGINFO                0x70000000
 #define PT_MIPS_RTPROC         0x70000001
@@ -150,7 +150,7 @@
        if ((__h->e_flags & EF_MIPS_ABI2) != 0)                         \
                __res = 0;                                              \
        if (((__h->e_flags & EF_MIPS_ABI) != 0) &&                      \
-           ((__h->e_flags & EF_MIPS_ABI) != EF_MIPS_ABI_O32))          \
+           ((__h->e_flags & EF_MIPS_ABI) != E_MIPS_ABI_O32))           \
                __res = 0;                                              \
                                                                        \
        __res;                                                          \

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