xref: /freebsd/contrib/file/magic/Magdir/netbsd (revision 0b3105a37d7adcadcb720112fed4dc4e8040be99)
1
2#------------------------------------------------------------------------------
3# $File: netbsd,v 1.22 2014/12/08 20:53:52 christos Exp $
4# netbsd:  file(1) magic for NetBSD objects
5#
6# All new-style magic numbers are in network byte order.
7# The old-style magic numbers are indistinguishable from the same magic
8# numbers used in other systems, and are handled, for all those systems,
9# in aout.
10#
11
120	belong&0377777777	041400413	a.out NetBSD/i386 demand paged
13>0	byte			&0x80
14>>20	lelong			<4096		shared library
15>>20	lelong			=4096		dynamically linked executable
16>>20	lelong			>4096		dynamically linked executable
17>0	byte			^0x80		executable
18>16	lelong			>0		not stripped
190	belong&0377777777	041400410	a.out NetBSD/i386 pure
20>0	byte			&0x80		dynamically linked executable
21>0	byte			^0x80		executable
22>16	lelong			>0		not stripped
230	belong&0377777777	041400407	a.out NetBSD/i386
24>0	byte			&0x80		dynamically linked executable
25>0	byte			^0x80
26>>0	byte			&0x40		position independent
27>>20	lelong			!0		executable
28>>20	lelong			=0		object file
29>16	lelong			>0		not stripped
300	belong&0377777777	041400507	a.out NetBSD/i386 core
31>12	string			>\0		from '%s'
32>32	lelong			!0		(signal %d)
33
340	belong&0377777777	041600413	a.out NetBSD/m68k demand paged
35>0	byte			&0x80
36>>20	belong			<8192		shared library
37>>20	belong			=8192		dynamically linked executable
38>>20	belong			>8192		dynamically linked executable
39>0	byte			^0x80		executable
40>16	belong			>0		not stripped
410	belong&0377777777	041600410	a.out NetBSD/m68k pure
42>0	byte			&0x80		dynamically linked executable
43>0	byte			^0x80		executable
44>16	belong			>0		not stripped
450	belong&0377777777	041600407	a.out NetBSD/m68k
46>0	byte			&0x80		dynamically linked executable
47>0	byte			^0x80
48>>0	byte			&0x40		position independent
49>>20	belong			!0		executable
50>>20	belong			=0		object file
51>16	belong			>0		not stripped
520	belong&0377777777	041600507	a.out NetBSD/m68k core
53>12	string			>\0		from '%s'
54>32	belong			!0		(signal %d)
55
560	belong&0377777777	042000413	a.out NetBSD/m68k4k demand paged
57>0	byte			&0x80
58>>20	belong			<4096		shared library
59>>20	belong			=4096		dynamically linked executable
60>>20	belong			>4096		dynamically linked executable
61>0	byte			^0x80		executable
62>16	belong			>0		not stripped
630	belong&0377777777	042000410	a.out NetBSD/m68k4k pure
64>0	byte			&0x80		dynamically linked executable
65>0	byte			^0x80		executable
66>16	belong			>0		not stripped
670	belong&0377777777	042000407	a.out NetBSD/m68k4k
68>0	byte			&0x80		dynamically linked executable
69>0	byte			^0x80
70>>0	byte			&0x40		position independent
71>>20	belong			!0		executable
72>>20	belong			=0		object file
73>16	belong			>0		not stripped
740	belong&0377777777	042000507	a.out NetBSD/m68k4k core
75>12	string			>\0		from '%s'
76>32	belong			!0		(signal %d)
77
780	belong&0377777777	042200413	a.out NetBSD/ns32532 demand paged
79>0	byte			&0x80
80>>20	lelong			<4096		shared library
81>>20	lelong			=4096		dynamically linked executable
82>>20	lelong			>4096		dynamically linked executable
83>0	byte			^0x80		executable
84>16	lelong			>0		not stripped
850	belong&0377777777	042200410	a.out NetBSD/ns32532 pure
86>0	byte			&0x80		dynamically linked executable
87>0	byte			^0x80		executable
88>16	lelong			>0		not stripped
890	belong&0377777777	042200407	a.out NetBSD/ns32532
90>0	byte			&0x80		dynamically linked executable
91>0	byte			^0x80
92>>0	byte			&0x40		position independent
93>>20	lelong			!0		executable
94>>20	lelong			=0		object file
95>16	lelong			>0		not stripped
960	belong&0377777777	042200507	a.out NetBSD/ns32532 core
97>12	string			>\0		from '%s'
98>32	lelong			!0		(signal %d)
99
1000	belong&0377777777	045200507	a.out NetBSD/powerpc core
101>12	string			>\0		from '%s'
102
1030	belong&0377777777	042400413	a.out NetBSD/SPARC demand paged
104>0	byte			&0x80
105>>20	belong			<8192		shared library
106>>20	belong			=8192		dynamically linked executable
107>>20	belong			>8192		dynamically linked executable
108>0	byte			^0x80		executable
109>16	belong			>0		not stripped
1100	belong&0377777777	042400410	a.out NetBSD/SPARC pure
111>0	byte			&0x80		dynamically linked executable
112>0	byte			^0x80		executable
113>16	belong			>0		not stripped
1140	belong&0377777777	042400407	a.out NetBSD/SPARC
115>0	byte			&0x80		dynamically linked executable
116>0	byte			^0x80
117>>0	byte			&0x40		position independent
118>>20	belong			!0		executable
119>>20	belong			=0		object file
120>16	belong			>0		not stripped
1210	belong&0377777777	042400507	a.out NetBSD/SPARC core
122>12	string			>\0		from '%s'
123>32	belong			!0		(signal %d)
124
1250	belong&0377777777	042600413	a.out NetBSD/pmax demand paged
126>0	byte			&0x80
127>>20	lelong			<4096		shared library
128>>20	lelong			=4096		dynamically linked executable
129>>20	lelong			>4096		dynamically linked executable
130>0	byte			^0x80		executable
131>16	lelong			>0		not stripped
1320	belong&0377777777	042600410	a.out NetBSD/pmax pure
133>0	byte			&0x80		dynamically linked executable
134>0	byte			^0x80		executable
135>16	lelong			>0		not stripped
1360	belong&0377777777	042600407	a.out NetBSD/pmax
137>0	byte			&0x80		dynamically linked executable
138>0	byte			^0x80
139>>0	byte			&0x40		position independent
140>>20	lelong			!0		executable
141>>20	lelong			=0		object file
142>16	lelong			>0		not stripped
1430	belong&0377777777	042600507	a.out NetBSD/pmax core
144>12	string			>\0		from '%s'
145>32	lelong			!0		(signal %d)
146
1470	belong&0377777777	043000413	a.out NetBSD/vax 1k demand paged
148>0	byte			&0x80
149>>20	lelong			<4096		shared library
150>>20	lelong			=4096		dynamically linked executable
151>>20	lelong			>4096		dynamically linked executable
152>0	byte			^0x80		executable
153>16	lelong			>0		not stripped
1540	belong&0377777777	043000410	a.out NetBSD/vax 1k pure
155>0	byte			&0x80		dynamically linked executable
156>0	byte			^0x80		executable
157>16	lelong			>0		not stripped
1580	belong&0377777777	043000407	a.out NetBSD/vax 1k
159>0	byte			&0x80		dynamically linked executable
160>0	byte			^0x80
161>>0	byte			&0x40		position independent
162>>20	lelong			!0		executable
163>>20	lelong			=0		object file
164>16	lelong			>0		not stripped
1650	belong&0377777777	043000507	a.out NetBSD/vax 1k core
166>12	string			>\0		from '%s'
167>32	lelong			!0		(signal %d)
168
1690	belong&0377777777	045400413	a.out NetBSD/vax 4k demand paged
170>0	byte			&0x80
171>>20	lelong			<4096		shared library
172>>20	lelong			=4096		dynamically linked executable
173>>20	lelong			>4096		dynamically linked executable
174>0	byte			^0x80		executable
175>16	lelong			>0		not stripped
1760	belong&0377777777	045400410	a.out NetBSD/vax 4k pure
177>0	byte			&0x80		dynamically linked executable
178>0	byte			^0x80		executable
179>16	lelong			>0		not stripped
1800	belong&0377777777	045400407	a.out NetBSD/vax 4k
181>0	byte			&0x80		dynamically linked executable
182>0	byte			^0x80
183>>0	byte			&0x40		position independent
184>>20	lelong			!0		executable
185>>20	lelong			=0		object file
186>16	lelong			>0		not stripped
1870	belong&0377777777	045400507	a.out NetBSD/vax 4k core
188>12	string			>\0		from '%s'
189>32	lelong			!0		(signal %d)
190
191# NetBSD/alpha does not support (and has never supported) a.out objects,
192# so no rules are provided for them.  NetBSD/alpha ELF objects are
193# dealt with in "elf".
1940	lelong		0x00070185		ECOFF NetBSD/alpha binary
195>10	leshort		0x0001			not stripped
196>10	leshort		0x0000			stripped
1970	belong&0377777777	043200507	a.out NetBSD/alpha core
198>12	string			>\0		from '%s'
199>32	lelong			!0		(signal %d)
200
2010	belong&0377777777	043400413	a.out NetBSD/mips demand paged
202>0	byte			&0x80
203>>20	belong			<8192		shared library
204>>20	belong			=8192		dynamically linked executable
205>>20	belong			>8192		dynamically linked executable
206>0	byte			^0x80		executable
207>16	belong			>0		not stripped
2080	belong&0377777777	043400410	a.out NetBSD/mips pure
209>0	byte			&0x80		dynamically linked executable
210>0	byte			^0x80		executable
211>16	belong			>0		not stripped
2120	belong&0377777777	043400407	a.out NetBSD/mips
213>0	byte			&0x80		dynamically linked executable
214>0	byte			^0x80
215>>0	byte			&0x40		position independent
216>>20	belong			!0		executable
217>>20	belong			=0		object file
218>16	belong			>0		not stripped
2190	belong&0377777777	043400507	a.out NetBSD/mips core
220>12	string			>\0		from '%s'
221>32	belong			!0		(signal %d)
222
2230	belong&0377777777	043600413	a.out NetBSD/arm32 demand paged
224>0	byte			&0x80
225>>20	lelong			<4096		shared library
226>>20	lelong			=4096		dynamically linked executable
227>>20	lelong			>4096		dynamically linked executable
228>0	byte			^0x80		executable
229>16	lelong			>0		not stripped
2300	belong&0377777777	043600410	a.out NetBSD/arm32 pure
231>0	byte			&0x80		dynamically linked executable
232>0	byte			^0x80		executable
233>16	lelong			>0		not stripped
2340	belong&0377777777	043600407	a.out NetBSD/arm32
235>0	byte			&0x80		dynamically linked executable
236>0	byte			^0x80
237>>0	byte			&0x40		position independent
238>>20	lelong			!0		executable
239>>20	lelong			=0		object file
240>16	lelong			>0		not stripped
241# NetBSD/arm26 has always used ELF objects, but it shares a core file
242# format with NetBSD/arm32.
2430	belong&0377777777	043600507	a.out NetBSD/arm core
244>12	string			>\0		from '%s'
245>32	lelong			!0		(signal %d)
246
247# Kernel core dump format
2480	belong&0x0000ffff 0x00008fca	NetBSD kernel core file
249>0	belong&0x03ff0000 0x00000000	\b, Unknown
250>0	belong&0x03ff0000 0x00010000	\b, sun 68010/68020
251>0	belong&0x03ff0000 0x00020000	\b, sun 68020
252>0	belong&0x03ff0000 0x00640000	\b, 386 PC
253>0	belong&0x03ff0000 0x00860000	\b, i386 BSD
254>0	belong&0x03ff0000 0x00870000	\b, m68k BSD (8K pages)
255>0	belong&0x03ff0000 0x00880000	\b, m68k BSD (4K pages)
256>0	belong&0x03ff0000 0x00890000	\b, ns32532 BSD
257>0	belong&0x03ff0000 0x008a0000	\b, SPARC/32 BSD
258>0	belong&0x03ff0000 0x008b0000	\b, pmax BSD
259>0	belong&0x03ff0000 0x008c0000	\b, vax BSD (1K pages)
260>0	belong&0x03ff0000 0x008d0000	\b, alpha BSD
261>0	belong&0x03ff0000 0x008e0000	\b, mips BSD (Big Endian)
262>0	belong&0x03ff0000 0x008f0000	\b, arm6 BSD
263>0	belong&0x03ff0000 0x00900000	\b, m68k BSD (2K pages)
264>0	belong&0x03ff0000 0x00910000	\b, sh3 BSD
265>0	belong&0x03ff0000 0x00950000	\b, ppc BSD (Big Endian)
266>0	belong&0x03ff0000 0x00960000	\b, vax BSD (4K pages)
267>0	belong&0x03ff0000 0x00970000	\b, mips1 BSD
268>0	belong&0x03ff0000 0x00980000	\b, mips2 BSD
269>0	belong&0x03ff0000 0x00990000	\b, m88k BSD
270>0	belong&0x03ff0000 0x00920000	\b, parisc BSD
271>0	belong&0x03ff0000 0x009b0000	\b, sh5/64 BSD
272>0	belong&0x03ff0000 0x009c0000	\b, SPARC/64 BSD
273>0	belong&0x03ff0000 0x009d0000	\b, amd64 BSD
274>0	belong&0x03ff0000 0x009e0000	\b, sh5/32 BSD
275>0	belong&0x03ff0000 0x009f0000	\b, ia64 BSD
276>0	belong&0x03ff0000 0x00b70000	\b, aarch64 BSD
277>0	belong&0x03ff0000 0x00b80000	\b, or1k BSD
278>0	belong&0x03ff0000 0x00b90000	\b, Risk-V BSD
279>0	belong&0x03ff0000 0x00c80000	\b, hp200 BSD
280>0	belong&0x03ff0000 0x012c0000	\b, hp300 BSD
281>0	belong&0x03ff0000 0x020b0000	\b, hp800 HP-UX
282>0	belong&0x03ff0000 0x020c0000	\b, hp200/hp300 HP-UX
283>0	belong&0xfc000000 0x04000000	\b, CPU
284>0	belong&0xfc000000 0x08000000	\b, DATA
285>0	belong&0xfc000000 0x10000000	\b, STACK
286>4	leshort	x			\b, (headersize = %d
287>6	leshort	x			\b, segmentsize = %d
288>6	lelong	x			\b, segments = %d)
289