summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrtemstoolkit/elftoolchain/common/native-elf-format6
1 files changed, 5 insertions, 1 deletions
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";