summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHesham Almatary <Hesham.Almatary@cl.cam.ac.uk>2019-10-31 15:17:03 +0000
committerHesham Almatary <Hesham.Almatary@cl.cam.ac.uk>2019-11-12 10:19:53 +0000
commitdcfccb1072a43c05f05a691608edbae0644264a9 (patch)
tree01a6887d489a5787db15f6b5aac7ba1171a64c54
parentrtemstoolkit: Interpolate realing rtems configuration files. (diff)
downloadrtems-tools-dcfccb1072a43c05f05a691608edbae0644264a9.tar.bz2
Add RISC-V machine to rld-elf
-rw-r--r--rtemstoolkit/rld-elf.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/rtemstoolkit/rld-elf.cpp b/rtemstoolkit/rld-elf.cpp
index 231f2bf..ffa3376 100644
--- a/rtemstoolkit/rld-elf.cpp
+++ b/rtemstoolkit/rld-elf.cpp
@@ -1189,6 +1189,11 @@ namespace rld
{ "m68k", EM_COLDFIRE },
{ "mips", EM_MIPS },
{ "powerpc", EM_PPC },
+#ifndef EM_RISCV
+ { "riscv", 243 }, /* If not in libelf yet */
+#else
+ { "riscv", EM_RISCV },
+#endif
{ "sh", EM_SH },
{ "sparc", EM_SPARC },
{ "sparc64", EM_SPARC },