xref: /netbsd-src/external/bsd/file/dist/magic/magdir/arm (revision e15daa8be9575f7ad2ca804c7c7c2d7f8e182d98)
1a77ebd86Schristos#------------------------------------------------------------------------------
2*e15daa8bSchristos# $File: arm,v 1.3 2022/10/31 14:35:39 christos Exp $
3a77ebd86Schristos# arm: file(1) magic for ARM COFF
4a77ebd86Schristos#
5a77ebd86Schristos# https://docs.microsoft.com/en-us/windows/win32/debug/pe-format
6a77ebd86Schristos
7a77ebd86Schristos# Aarch64
8a77ebd86Schristos0	leshort		0xaa64
9a77ebd86Schristos# test for unused flag bits in f_flags
10a77ebd86Schristos>18	uleshort&0x8E80	0
11a77ebd86Schristos# use little endian variant of subroutine to
12a77ebd86Schristos# display name+variables+flags for common object formatted files
13a77ebd86Schristos>>0	use				display-coff
14a77ebd86Schristos!:strength -10
15a77ebd86Schristos
16a77ebd86Schristos# ARM
17a77ebd86Schristos0	leshort		0x01c0
18a77ebd86Schristos# test for unused flag bits in f_flags
19a77ebd86Schristos>18	uleshort&0x8E80	0
20a77ebd86Schristos# use little endian variant of subroutine to
21a77ebd86Schristos# display name+variables+flags for common object formatted files
22a77ebd86Schristos>>0	use				display-coff
23a77ebd86Schristos!:strength -10
24a77ebd86Schristos
25a77ebd86Schristos# ARM Thumb
26a77ebd86Schristos0	leshort		0x01c2
27a77ebd86Schristos# test for unused flag bits in f_flags
28a77ebd86Schristos>18	uleshort&0x8E80	0
29a77ebd86Schristos# use little endian variant of subroutine to
30a77ebd86Schristos# display name+variables+flags for common object formatted files
31a77ebd86Schristos>>0	use				display-coff
32a77ebd86Schristos!:strength -10
33a77ebd86Schristos
34a77ebd86Schristos# ARMv7 Thumb
35a77ebd86Schristos0	leshort		0x01c4
36a77ebd86Schristos# test for unused flag bits in f_flags
37a77ebd86Schristos>18	uleshort&0x8E80	0
38a77ebd86Schristos# use little endian variant of subroutine to
39a77ebd86Schristos# display name+variables+flags for common object formatted files
40a77ebd86Schristos>>0	use				display-coff
41a77ebd86Schristos!:strength -10
42*e15daa8bSchristos
43*e15daa8bSchristos# ARM64EC
44*e15daa8bSchristos0	leshort		0xa641
45*e15daa8bSchristos# test for unused flag bits in f_flags
46*e15daa8bSchristos>18	uleshort&0x8E80	0
47*e15daa8bSchristos# use little endian variant of subroutine to
48*e15daa8bSchristos# display name+variables+flags for common object formatted files
49*e15daa8bSchristos>>0	use				display-coff
50*e15daa8bSchristos!:strength -10
51