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