[rtems-tools commit] fix native elf detection on x86_64 machines

Chris Johns chrisj at rtems.org
Tue Nov 27 06:02:49 UTC 2018


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

Author:    Christian Spindeldreier <spindeldreier at ims.uni-hannover.de>
Date:      Fri Nov 23 16:29:31 2018 +0100

fix native elf detection on x86_64 machines

Closes #3616

---

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

diff --git a/rtemstoolkit/elftoolchain/common/native-elf-format b/rtemstoolkit/elftoolchain/common/native-elf-format
index 7ebaaa8..7a5ca5b 100755
--- a/rtemstoolkit/elftoolchain/common/native-elf-format
+++ b/rtemstoolkit/elftoolchain/common/native-elf-format
@@ -39,7 +39,7 @@ $1 ~ "Machine:" {
             elfarch = "EM_386";
         } else if (match($0, "MIPS")) {
             elfarch = "EM_MIPS";
-        } else if (match($0, ".*[xX]86-64")) {
+        } else if (match($0, ".*[xX]86[-_]64")) {
             elfarch = "EM_X86_64";
         } else {
             elfarch = "unknown";



More information about the vc mailing list