[PATCH] D34742: [BinaryFormat] Identify AArch64 COFF files
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 28 00:39:57 PDT 2017
mstorsjo created this revision.
Herald added subscribers: kristof.beyls, rengolin, aemerson.
https://reviews.llvm.org/D34742
Files:
lib/BinaryFormat/Magic.cpp
Index: lib/BinaryFormat/Magic.cpp
===================================================================
--- lib/BinaryFormat/Magic.cpp
+++ lib/BinaryFormat/Magic.cpp
@@ -191,8 +191,8 @@
}
break;
- case 0x64: // x86-64 Windows.
- if (Magic[1] == char(0x86))
+ case 0x64: // x86-64 or ARM64 Windows.
+ if (Magic[1] == char(0x86) || Magic[1] == char(0xaa))
return file_magic::coff_object;
break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34742.104355.patch
Type: text/x-patch
Size: 425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170628/bb028229/attachment.bin>
More information about the llvm-commits
mailing list