[File] Extend PE (msdos) magic with new architectures

Michał Janiszewski janisozaur at gmail.com
Thu Oct 17 17:06:05 UTC 2019


Many thanks for merging it, however there was a minor mistake. I've
resent v2 of this patch earlier today and while merging it seems there
was Aarch64 missed.
Here's the fixup diff:

diff --git a/magic/Magdir/msdos b/magic/Magdir/msdos
index f45f221e..5bc23eea 100644
--- a/magic/Magdir/msdos
+++ b/magic/Magdir/msdos
@@ -116,7 +116,8 @@
 >>>(0x3c.l+4) leshort 0x166 MIPS R4000
 >>>(0x3c.l+4) leshort 0x168 MIPS R10000
 >>>(0x3c.l+4) leshort 0x184 Alpha
->>>(0x3c.l+4) leshort 0x1a2 Hitachi SH3 DSP
+>>>(0x3c.l+4) leshort 0x1a2 Hitachi SH3
+>>>(0x3c.l+4) leshort 0x1a3 Hitachi SH3 DSP
 >>>(0x3c.l+4) leshort 0x1a8 Hitachi SH5
 >>>(0x3c.l+4) leshort 0x169 MIPS WCE v2
 >>>(0x3c.l+4) leshort 0x1a6 Hitachi SH4
@@ -138,6 +139,7 @@
 >>>(0x3c.l+4) leshort 0x5128 RISC-V 128-bit
 >>>(0x3c.l+4) leshort 0x9041 Mitsubishi M32R
 >>>(0x3c.l+4) leshort 0x8664 x86-64
+>>>(0x3c.l+4) leshort 0xaa64 Aarch64
 >>>(0x3c.l+4) leshort 0xc0ee MSIL
 >>>(0x3c.l+4) default x Unknown processor type
 >>>>&0 leshort x 0x%x
-- 
2.23.0


On Thu, 17 Oct 2019 at 17:47, Christos Zoulas <christos at zoulas.com> wrote:
>
> On Oct 17, 12:08pm, janisozaur at gmail.com (=?UTF-8?Q?Micha=C5=82_Janiszewski?=) wrote:
> -- Subject: Re: [File] Extend PE (msdos) magic with new architectures
>
> Committed, thanks!
>
> christos



-- 
Michal Janiszewski
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fixup-CPU-archs-for-PE.patch
Type: text/x-patch
Size: 1145 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20191017/83fc1565/attachment.bin>


More information about the File mailing list