summaryrefslogtreecommitdiffstats
path: root/Source/bindexplib.cxx
diff options
context:
space:
mode:
authorJacek Blaszczynski <biosciencenow@outlook.com>2017-12-17 00:41:21 (GMT)
committerJacek Blaszczynski <biosciencenow@outlook.com>2017-12-17 00:41:21 (GMT)
commit8950183b3834dc2179dc4965138b1091e291ae9f (patch)
tree7548945fe7063be6b636864d59ccda6ac7904920 /Source/bindexplib.cxx
parentd4fb3136d5b32ac17ce6bc00d9f62163ba5bd800 (diff)
downloadCMake-8950183b3834dc2179dc4965138b1091e291ae9f.zip
CMake-8950183b3834dc2179dc4965138b1091e291ae9f.tar.gz
CMake-8950183b3834dc2179dc4965138b1091e291ae9f.tar.bz2
Add Arm64 support to COFF symbol export feature
Diffstat (limited to 'Source/bindexplib.cxx')
-rw-r--r--Source/bindexplib.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/bindexplib.cxx b/Source/bindexplib.cxx
index 2eb47f3..698ab78 100644
--- a/Source/bindexplib.cxx
+++ b/Source/bindexplib.cxx
@@ -328,8 +328,9 @@ bool DumpFile(const char* filename, std::set<std::string>& symbols,
/* Does it look like a COFF OBJ file??? */
else if (((dosHeader->e_magic == IMAGE_FILE_MACHINE_I386) ||
(dosHeader->e_magic == IMAGE_FILE_MACHINE_AMD64) ||
- (dosHeader->e_magic == IMAGE_FILE_MACHINE_ARMNT)) &&
- (dosHeader->e_sp == 0)) {
+ (dosHeader->e_magic == IMAGE_FILE_MACHINE_ARMNT)) ||
+ (dosHeader->e_magic == IMAGE_FILE_MACHINE_ARM64) &&
+ (dosHeader->e_sp == 0)) {
/*
* The two tests above aren't what they look like. They're
* really checking for IMAGE_FILE_HEADER.Machine == i386 (0x14C)