[PATCH] rtemstoolkit: Detect native SPARCV9 ELF arch

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Mar 5 09:44:54 UTC 2020


---
 rtemstoolkit/elftoolchain/common/native-elf-format | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rtemstoolkit/elftoolchain/common/native-elf-format b/rtemstoolkit/elftoolchain/common/native-elf-format
index 7a5ca5b..18f817a 100755
--- a/rtemstoolkit/elftoolchain/common/native-elf-format
+++ b/rtemstoolkit/elftoolchain/common/native-elf-format
@@ -41,6 +41,8 @@ $1 ~ "Machine:" {
             elfarch = "EM_MIPS";
         } else if (match($0, ".*[xX]86[-_]64")) {
             elfarch = "EM_X86_64";
+        } else if (match($0, "Sparc v9")) {
+            elfarch = "EM_SPARCV9";
         } else {
             elfarch = "unknown";
         }
-- 
2.16.4



More information about the devel mailing list