diff options
author | Chris Johns <chrisj@rtems.org> | 2018-11-15 13:35:35 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-11-15 13:35:35 +1100 |
commit | 94214bf1252a097e7da5498debb2661ce5c2e762 (patch) | |
tree | 228c6e19e75d017f1564bc23bb4bba2ced0818f4 | |
parent | tester: Remove riscv_generic (diff) | |
download | rtems-tools-94214bf1252a097e7da5498debb2661ce5c2e762.tar.bz2 |
rtemstoolkit: Add ARM and AArch64 support to Linux elftoolchain.
-rwxr-xr-x | rtemstoolkit/elftoolchain/common/native-elf-format | 6 |
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"; |