summaryrefslogtreecommitdiff
path: root/common/native-elf-format
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2019-01-10 14:18:11 +0000
committerEd Maste <emaste@FreeBSD.org>2019-01-10 14:18:11 +0000
commit2b92b30119ed91ed88f102ba9ecc40cd1c046a65 (patch)
tree5cde2d0340810533c039044df9508aee4fd482b3 /common/native-elf-format
parent87ec209e33f42bd708452228ae84ded370b70163 (diff)
Notes
Diffstat (limited to 'common/native-elf-format')
-rwxr-xr-xcommon/native-elf-format4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/native-elf-format b/common/native-elf-format
index 2bdd914c3052e..f29bcb16716bf 100755
--- a/common/native-elf-format
+++ b/common/native-elf-format
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $Id: native-elf-format 3293 2016-01-07 19:26:27Z emaste $
+# $Id: native-elf-format 3650 2018-11-25 12:06:28Z jkoshy $
#
# Find the native ELF format for a host platform by compiling a
# test object and examining the resulting object.
@@ -35,7 +35,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";