1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

[BinaryFormat] Identify AArch64 COFF files

Differential Revision: https://reviews.llvm.org/D34742

llvm-svn: 306647
This commit is contained in:
Martin Storsjo 2017-06-29 06:30:56 +00:00
parent 5ad8b2c632
commit a10dbe7d17

View File

@ -190,8 +190,8 @@ file_magic llvm::identify_magic(StringRef Magic) {
}
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;