about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2016-04-20 13:20:50 +0200
committerRich Felker <dalias@aerifal.cx>2016-07-03 16:15:13 -0400
commit3c3b09980d792ea8393f0a3865735b2ff5ecc765 (patch)
tree5f2c0fdcd4e6abd9221c303e114118abf0380281
parent84fd4e4ffdefeec296a56b1f307413a5171eb9e1 (diff)
downloadmusl-3c3b09980d792ea8393f0a3865735b2ff5ecc765.tar.gz
musl-3c3b09980d792ea8393f0a3865735b2ff5ecc765.tar.xz
musl-3c3b09980d792ea8393f0a3865735b2ff5ecc765.zip
add EF_SH_ sh specific macros to elf.h
last time elf.h was thoroughly updated sh was not yet supported
so these processor specific e_flags were missing.
-rw-r--r--include/elf.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/include/elf.h b/include/elf.h
index a24ea9b7..8ecf965a 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -2587,7 +2587,28 @@ enum
 #define R_IA64_LTOFF_DTPREL22	0xba
 
 
-
+#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
 
 #define	R_SH_NONE		0
 #define	R_SH_DIR32		1