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

Christos Zoulas christos at zoulas.com
Thu Oct 17 17:57:19 UTC 2019


On Oct 17,  7:06pm, janisozaur at gmail.com (=?UTF-8?Q?Micha=C5=82_Janiszewski?=) wrote:
-- Subject: Re: [File] Extend PE (msdos) magic with new architectures

| 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
| 

You got it!

thanks,

christos


More information about the File mailing list