elf/elf.h: Add SH specific ELF header flags.
authorMatt Fleming <matt@console-pimps.org>
Tue, 13 Apr 2010 19:10:31 +0000 (12:10 -0700)
committerRoland McGrath <roland@redhat.com>
Tue, 13 Apr 2010 19:10:31 +0000 (12:10 -0700)
ChangeLog
elf/elf.h

index 60391d6..448eeec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-10  Matt Fleming  <matt@console-pimps.org>
+
+       * elf/elf.h: Add SH specific ELF header flags.
+
 2010-04-13  Andreas Schwab  <schwab@redhat.com>
 
        * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Fix setup of
index 1efe359..a9558a3 100644 (file)
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -2477,6 +2477,30 @@ typedef Elf32_Addr Elf32_Conflict;
 
 /* SH specific declarations */
 
+/* Processor specific flags for the ELF header e_flags field.  */
+#define EF_SH_MACH_MASK                0x1f
+#define EF_SH_UNKNOWN          0x0
+#define EF_SH1                 0x1
+#define EF_SH2                 0x2
+#define EF_SH3                 0x3
+#define EF_SH_DSP              0x4
+#define EF_SH3_DSP             0x5
+#define EF_SH4AL_DSP           0x6
+#define EF_SH3E                        0x8
+#define EF_SH4                 0x9
+#define EF_SH2E                        0xb
+#define EF_SH4A                        0xc
+#define EF_SH2A                        0xd
+#define EF_SH4_NOFPU           0x10
+#define EF_SH4A_NOFPU          0x11
+#define EF_SH4_NOMMU_NOFPU     0x12
+#define EF_SH2A_NOFPU          0x13
+#define EF_SH3_NOMMU           0x14
+#define EF_SH2A_SH4_NOFPU      0x15
+#define EF_SH2A_SH3_NOFPU      0x16
+#define EF_SH2A_SH4            0x17
+#define EF_SH2A_SH3E           0x18
+
 /* SH relocs.  */
 #define        R_SH_NONE               0
 #define        R_SH_DIR32              1