Commit a88bb8380db5343c57130ac80c787c7869eae3c7

Christian Svensson 2014-03-06T22:10:36

Add OpenRISC support to nlist() Signed-off-by: Guillem Jover <guillem@hadrons.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/local-elf.h b/src/local-elf.h
index 3f935ac..612ce12 100644
--- a/src/local-elf.h
+++ b/src/local-elf.h
@@ -179,6 +179,12 @@
 #endif
 #define ELF_TARG_DATA	ELFDATA2MSB
 
+#elif defined(__or1k__)
+
+#define ELF_TARG_MACH	EM_OPENRISC
+#define ELF_TARG_CLASS	ELFCLASS32
+#define ELF_TARG_DATA	ELFDATA2MSB
+
 #else
 
 #error Unknown ELF machine type