[rtems-tools commit] rtemstoolkit: Add ARM and AArch64 support to Linux elftoolchain.

Chris Johns chrisj at rtems.org
Thu Nov 15 02:36:07 UTC 2018


Module:    rtems-tools
Branch:    master
Commit:    94214bf1252a097e7da5498debb2661ce5c2e762
Changeset: http://git.rtems.org/rtems-tools/commit/?id=94214bf1252a097e7da5498debb2661ce5c2e762

Author:    Chris Johns <chrisj at rtems.org>
Date:      Thu Nov 15 13:35:35 2018 +1100

rtemstoolkit: Add ARM and AArch64 support to Linux elftoolchain.

---

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

diff --git a/rtemstoolkit/elftoolchain/common/native-elf-format b/rtemstoolkit/elftoolchain/common/native-elf-format
index 2bdd914..7ebaaa8 100755
--- a/rtemstoolkit/elftoolchain/common/native-elf-format
+++ b/rtemstoolkit/elftoolchain/common/native-elf-format
@@ -31,7 +31,11 @@ $1 ~ "Data:"  {
 	}
     }
 $1 ~ "Machine:" {
-        if (match($0, "Intel.*386")) {
+        if (match($0, "ARM")) {
+            elfarch = "EM_ARM";
+        } else if (match($0, "AArch64")) {
+            elfarch = "EM_AARCH64";
+        } else if (match($0, "Intel.*386")) {
             elfarch = "EM_386";
         } else if (match($0, "MIPS")) {
             elfarch = "EM_MIPS";




More information about the vc mailing list