diff options
Diffstat (limited to 'magic/Magdir/arm')
| -rw-r--r-- | magic/Magdir/arm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/magic/Magdir/arm b/magic/Magdir/arm new file mode 100644 index 000000000000..b40f213cbfb4 --- /dev/null +++ b/magic/Magdir/arm @@ -0,0 +1,41 @@ +#------------------------------------------------------------------------------ +# $File: arm,v 1.2 2021/07/14 17:40:31 christos Exp $ +# arm: file(1) magic for ARM COFF +# +# https://docs.microsoft.com/en-us/windows/win32/debug/pe-format + +# Aarch64 +0 leshort 0xaa64 +# test for unused flag bits in f_flags +>18 uleshort&0x8E80 0 +# use little endian variant of subroutine to +# display name+variables+flags for common object formatted files +>>0 use display-coff +!:strength -10 + +# ARM +0 leshort 0x01c0 +# test for unused flag bits in f_flags +>18 uleshort&0x8E80 0 +# use little endian variant of subroutine to +# display name+variables+flags for common object formatted files +>>0 use display-coff +!:strength -10 + +# ARM Thumb +0 leshort 0x01c2 +# test for unused flag bits in f_flags +>18 uleshort&0x8E80 0 +# use little endian variant of subroutine to +# display name+variables+flags for common object formatted files +>>0 use display-coff +!:strength -10 + +# ARMv7 Thumb +0 leshort 0x01c4 +# test for unused flag bits in f_flags +>18 uleshort&0x8E80 0 +# use little endian variant of subroutine to +# display name+variables+flags for common object formatted files +>>0 use display-coff +!:strength -10 |
