[llvm] r306647 - [BinaryFormat] Identify AArch64 COFF files
Martin Storsjo via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 28 23:30:56 PDT 2017
Author: mstorsjo
Date: Wed Jun 28 23:30:56 2017
New Revision: 306647
URL: http://llvm.org/viewvc/llvm-project?rev=306647&view=rev
Log:
[BinaryFormat] Identify AArch64 COFF files
Differential Revision: https://reviews.llvm.org/D34742
Modified:
llvm/trunk/lib/BinaryFormat/Magic.cpp
Modified: llvm/trunk/lib/BinaryFormat/Magic.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/BinaryFormat/Magic.cpp?rev=306647&r1=306646&r2=306647&view=diff
==============================================================================
--- llvm/trunk/lib/BinaryFormat/Magic.cpp (original)
+++ llvm/trunk/lib/BinaryFormat/Magic.cpp Wed Jun 28 23:30:56 2017
@@ -190,8 +190,8 @@ file_magic llvm::identify_magic(StringRe
}
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;
More information about the llvm-commits
mailing list