]> granicus.if.org Git - file/commitdiff
PR/19: Recognize ia64 and amd64 COFF files
authorChristos Zoulas <christos@zoulas.com>
Wed, 1 Aug 2018 10:34:03 +0000 (10:34 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 1 Aug 2018 10:34:03 +0000 (10:34 +0000)
magic/Magdir/coff
magic/Magdir/intel

index b4addec58ffde93f3859b16129630a2550385e4a..31b47e7aff4285a6a553db7590031df763208ffc 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: coff,v 1.2 2017/03/17 21:35:28 christos Exp $
+# $File: coff,v 1.3 2018/08/01 10:34:03 christos Exp $
 # coff: file(1) magic for Common Object Files not specific to known cpu types or manufactures
 #
 # COFF
 >>0    uleshort        0x0550          Hitachi SH little-endian
 # executable (RISC System/6000 V3.1) or obj module (./ibm6000)
 #>>0   uleshort        0x01DF
+# MS Windows COFF Intel Itanium, AMD64
+# https://msdn.microsoft.com/en-us/library/windows/desktop/ms680313(v=vs.85).aspx
+>>0    uleshort        0x0200          Intel ia64
+>>0    uleshort        0x8664          Intel amd64
 # TODO for other COFFs
 #>>0   uleshort        0xABCD          COFF_TEMPLATE
 >>0    default         x
index 8a7eae4ee1eec209ddaa34805f194a86a8493234..85e2abef457d8347f544ee59488e8dd37e940a37 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: intel,v 1.16 2017/11/14 15:48:36 christos Exp $
+# $File: intel,v 1.17 2018/08/01 10:34:03 christos Exp $
 # intel:  file(1) magic for x86 Unix
 #
 # Various flavors of x86 UNIX executable/object (other than Xenix, which
 #>12   lelong          >0              not stripped
 # no hint found, that at offset 22 is version
 #>22   leshort         >0              - version %d
+0      leshort         0x0200
+>0     use                             display-coff
+0      leshort         0x8664
+>0     use                             display-coff
 
 # rom: file(1) magic for BIOS ROM Extensions found in intel machines
 #      mapped into memory between 0xC0000 and 0xFFFFF