[PATCH] D34742: [BinaryFormat] Identify AArch64 COFF files

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 28 23:31:20 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL306647: [BinaryFormat] Identify AArch64 COFF files (authored by mstorsjo).

Changed prior to commit:
  https://reviews.llvm.org/D34742?vs=104355&id=104600#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D34742

Files:
  llvm/trunk/lib/BinaryFormat/Magic.cpp


Index: llvm/trunk/lib/BinaryFormat/Magic.cpp
===================================================================
--- llvm/trunk/lib/BinaryFormat/Magic.cpp
+++ llvm/trunk/lib/BinaryFormat/Magic.cpp
@@ -190,8 +190,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.104600.patch
Type: text/x-patch
Size: 458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170629/6bca6c25/attachment.bin>


More information about the llvm-commits mailing list