xref: /dragonfly/contrib/file/magic/Magdir/netbsd (revision cfd1aba3)
1
2#------------------------------------------------------------------------------
3# $File: netbsd,v 1.19 2011/10/31 17:23:34 christos Exp $
4# netbsd:  file(1) magic for NetBSD objects
5#
6# All new-style magic numbers are in network byte order.
7#
8
90	lelong			000000407	a.out NetBSD little-endian object file
10>16	lelong			>0		not stripped
110	belong			000000407	a.out NetBSD big-endian object file
12>16	belong			>0		not stripped
13
140	belong&0377777777	041400413	a.out NetBSD/i386 demand paged
15>0	byte			&0x80
16>>20	lelong			<4096		shared library
17>>20	lelong			=4096		dynamically linked executable
18>>20	lelong			>4096		dynamically linked executable
19>0	byte			^0x80		executable
20>16	lelong			>0		not stripped
210	belong&0377777777	041400410	a.out NetBSD/i386 pure
22>0	byte			&0x80		dynamically linked executable
23>0	byte			^0x80		executable
24>16	lelong			>0		not stripped
250	belong&0377777777	041400407	a.out NetBSD/i386
26>0	byte			&0x80		dynamically linked executable
27>0	byte			^0x80
28>>0	byte			&0x40		position independent
29>>20	lelong			!0		executable
30>>20	lelong			=0		object file
31>16	lelong			>0		not stripped
320	belong&0377777777	041400507	a.out NetBSD/i386 core
33>12	string			>\0		from '%s'
34>32	lelong			!0		(signal %d)
35
360	belong&0377777777	041600413	a.out NetBSD/m68k demand paged
37>0	byte			&0x80
38>>20	belong			<8192		shared library
39>>20	belong			=8192		dynamically linked executable
40>>20	belong			>8192		dynamically linked executable
41>0	byte			^0x80		executable
42>16	belong			>0		not stripped
430	belong&0377777777	041600410	a.out NetBSD/m68k pure
44>0	byte			&0x80		dynamically linked executable
45>0	byte			^0x80		executable
46>16	belong			>0		not stripped
470	belong&0377777777	041600407	a.out NetBSD/m68k
48>0	byte			&0x80		dynamically linked executable
49>0	byte			^0x80
50>>0	byte			&0x40		position independent
51>>20	belong			!0		executable
52>>20	belong			=0		object file
53>16	belong			>0		not stripped
540	belong&0377777777	041600507	a.out NetBSD/m68k core
55>12	string			>\0		from '%s'
56>32	belong			!0		(signal %d)
57
580	belong&0377777777	042000413	a.out NetBSD/m68k4k demand paged
59>0	byte			&0x80
60>>20	belong			<4096		shared library
61>>20	belong			=4096		dynamically linked executable
62>>20	belong			>4096		dynamically linked executable
63>0	byte			^0x80		executable
64>16	belong			>0		not stripped
650	belong&0377777777	042000410	a.out NetBSD/m68k4k pure
66>0	byte			&0x80		dynamically linked executable
67>0	byte			^0x80		executable
68>16	belong			>0		not stripped
690	belong&0377777777	042000407	a.out NetBSD/m68k4k
70>0	byte			&0x80		dynamically linked executable
71>0	byte			^0x80
72>>0	byte			&0x40		position independent
73>>20	belong			!0		executable
74>>20	belong			=0		object file
75>16	belong			>0		not stripped
760	belong&0377777777	042000507	a.out NetBSD/m68k4k core
77>12	string			>\0		from '%s'
78>32	belong			!0		(signal %d)
79
800	belong&0377777777	042200413	a.out NetBSD/ns32532 demand paged
81>0	byte			&0x80
82>>20	lelong			<4096		shared library
83>>20	lelong			=4096		dynamically linked executable
84>>20	lelong			>4096		dynamically linked executable
85>0	byte			^0x80		executable
86>16	lelong			>0		not stripped
870	belong&0377777777	042200410	a.out NetBSD/ns32532 pure
88>0	byte			&0x80		dynamically linked executable
89>0	byte			^0x80		executable
90>16	lelong			>0		not stripped
910	belong&0377777777	042200407	a.out NetBSD/ns32532
92>0	byte			&0x80		dynamically linked executable
93>0	byte			^0x80
94>>0	byte			&0x40		position independent
95>>20	lelong			!0		executable
96>>20	lelong			=0		object file
97>16	lelong			>0		not stripped
980	belong&0377777777	042200507	a.out NetBSD/ns32532 core
99>12	string			>\0		from '%s'
100>32	lelong			!0		(signal %d)
101
1020	belong&0377777777	045200507	a.out NetBSD/powerpc core
103>12	string			>\0		from '%s'
104
1050	belong&0377777777	042400413	a.out NetBSD/sparc demand paged
106>0	byte			&0x80
107>>20	belong			<8192		shared library
108>>20	belong			=8192		dynamically linked executable
109>>20	belong			>8192		dynamically linked executable
110>0	byte			^0x80		executable
111>16	belong			>0		not stripped
1120	belong&0377777777	042400410	a.out NetBSD/sparc pure
113>0	byte			&0x80		dynamically linked executable
114>0	byte			^0x80		executable
115>16	belong			>0		not stripped
1160	belong&0377777777	042400407	a.out NetBSD/sparc
117>0	byte			&0x80		dynamically linked executable
118>0	byte			^0x80
119>>0	byte			&0x40		position independent
120>>20	belong			!0		executable
121>>20	belong			=0		object file
122>16	belong			>0		not stripped
1230	belong&0377777777	042400507	a.out NetBSD/sparc core
124>12	string			>\0		from '%s'
125>32	belong			!0		(signal %d)
126
1270	belong&0377777777	042600413	a.out NetBSD/pmax demand paged
128>0	byte			&0x80
129>>20	lelong			<4096		shared library
130>>20	lelong			=4096		dynamically linked executable
131>>20	lelong			>4096		dynamically linked executable
132>0	byte			^0x80		executable
133>16	lelong			>0		not stripped
1340	belong&0377777777	042600410	a.out NetBSD/pmax pure
135>0	byte			&0x80		dynamically linked executable
136>0	byte			^0x80		executable
137>16	lelong			>0		not stripped
1380	belong&0377777777	042600407	a.out NetBSD/pmax
139>0	byte			&0x80		dynamically linked executable
140>0	byte			^0x80
141>>0	byte			&0x40		position independent
142>>20	lelong			!0		executable
143>>20	lelong			=0		object file
144>16	lelong			>0		not stripped
1450	belong&0377777777	042600507	a.out NetBSD/pmax core
146>12	string			>\0		from '%s'
147>32	lelong			!0		(signal %d)
148
1490	belong&0377777777	043000413	a.out NetBSD/vax 1k demand paged
150>0	byte			&0x80
151>>20	lelong			<4096		shared library
152>>20	lelong			=4096		dynamically linked executable
153>>20	lelong			>4096		dynamically linked executable
154>0	byte			^0x80		executable
155>16	lelong			>0		not stripped
1560	belong&0377777777	043000410	a.out NetBSD/vax 1k pure
157>0	byte			&0x80		dynamically linked executable
158>0	byte			^0x80		executable
159>16	lelong			>0		not stripped
1600	belong&0377777777	043000407	a.out NetBSD/vax 1k
161>0	byte			&0x80		dynamically linked executable
162>0	byte			^0x80
163>>0	byte			&0x40		position independent
164>>20	lelong			!0		executable
165>>20	lelong			=0		object file
166>16	lelong			>0		not stripped
1670	belong&0377777777	043000507	a.out NetBSD/vax 1k core
168>12	string			>\0		from '%s'
169>32	lelong			!0		(signal %d)
170
1710	belong&0377777777	045400413	a.out NetBSD/vax 4k demand paged
172>0	byte			&0x80
173>>20	lelong			<4096		shared library
174>>20	lelong			=4096		dynamically linked executable
175>>20	lelong			>4096		dynamically linked executable
176>0	byte			^0x80		executable
177>16	lelong			>0		not stripped
1780	belong&0377777777	045400410	a.out NetBSD/vax 4k pure
179>0	byte			&0x80		dynamically linked executable
180>0	byte			^0x80		executable
181>16	lelong			>0		not stripped
1820	belong&0377777777	045400407	a.out NetBSD/vax 4k
183>0	byte			&0x80		dynamically linked executable
184>0	byte			^0x80
185>>0	byte			&0x40		position independent
186>>20	lelong			!0		executable
187>>20	lelong			=0		object file
188>16	lelong			>0		not stripped
1890	belong&0377777777	045400507	a.out NetBSD/vax 4k core
190>12	string			>\0		from '%s'
191>32	lelong			!0		(signal %d)
192
193# NetBSD/alpha does not support (and has never supported) a.out objects,
194# so no rules are provided for them.  NetBSD/alpha ELF objects are
195# dealt with in "elf".
1960	lelong		0x00070185		ECOFF NetBSD/alpha binary
197>10	leshort		0x0001			not stripped
198>10	leshort		0x0000			stripped
1990	belong&0377777777	043200507	a.out NetBSD/alpha core
200>12	string			>\0		from '%s'
201>32	lelong			!0		(signal %d)
202
2030	belong&0377777777	043400413	a.out NetBSD/mips demand paged
204>0	byte			&0x80
205>>20	belong			<8192		shared library
206>>20	belong			=8192		dynamically linked executable
207>>20	belong			>8192		dynamically linked executable
208>0	byte			^0x80		executable
209>16	belong			>0		not stripped
2100	belong&0377777777	043400410	a.out NetBSD/mips pure
211>0	byte			&0x80		dynamically linked executable
212>0	byte			^0x80		executable
213>16	belong			>0		not stripped
2140	belong&0377777777	043400407	a.out NetBSD/mips
215>0	byte			&0x80		dynamically linked executable
216>0	byte			^0x80
217>>0	byte			&0x40		position independent
218>>20	belong			!0		executable
219>>20	belong			=0		object file
220>16	belong			>0		not stripped
2210	belong&0377777777	043400507	a.out NetBSD/mips core
222>12	string			>\0		from '%s'
223>32	belong			!0		(signal %d)
224
2250	belong&0377777777	043600413	a.out NetBSD/arm32 demand paged
226>0	byte			&0x80
227>>20	lelong			<4096		shared library
228>>20	lelong			=4096		dynamically linked executable
229>>20	lelong			>4096		dynamically linked executable
230>0	byte			^0x80		executable
231>16	lelong			>0		not stripped
2320	belong&0377777777	043600410	a.out NetBSD/arm32 pure
233>0	byte			&0x80		dynamically linked executable
234>0	byte			^0x80		executable
235>16	lelong			>0		not stripped
2360	belong&0377777777	043600407	a.out NetBSD/arm32
237>0	byte			&0x80		dynamically linked executable
238>0	byte			^0x80
239>>0	byte			&0x40		position independent
240>>20	lelong			!0		executable
241>>20	lelong			=0		object file
242>16	lelong			>0		not stripped
243# NetBSD/arm26 has always used ELF objects, but it shares a core file
244# format with NetBSD/arm32.
2450	belong&0377777777	043600507	a.out NetBSD/arm core
246>12	string			>\0		from '%s'
247>32	lelong			!0		(signal %d)
248
249# Kernel core dump format
2500	belong&0x0000ffff 0x00008fca	NetBSD kernel core file
251>0	belong&0x03ff0000 0x00000000	\b, Unknown
252>0	belong&0x03ff0000 0x00001000	\b, sun 68010/68020
253>0	belong&0x03ff0000 0x00020000	\b, sun 68020
254>0	belong&0x03ff0000 0x00640000	\b, 386 PC
255>0	belong&0x03ff0000 0x00860000	\b, i386 BSD
256>0	belong&0x03ff0000 0x00870000	\b, m68k BSD (8K pages)
257>0	belong&0x03ff0000 0x00880000	\b, m68k BSD (4K pages)
258>0	belong&0x03ff0000 0x00890000	\b, ns32532 BSD
259>0	belong&0x03ff0000 0x008a0000	\b, sparc/32 BSD
260>0	belong&0x03ff0000 0x008b0000	\b, pmax BSD
261>0	belong&0x03ff0000 0x008c0000	\b, vax BSD (1K pages)
262>0	belong&0x03ff0000 0x008d0000	\b, alpha BSD
263>0	belong&0x03ff0000 0x008e0000	\b, mips BSD (Big Endian)
264>0	belong&0x03ff0000 0x008f0000	\b, arm6 BSD
265>0	belong&0x03ff0000 0x00900000	\b, m68k BSD (2K pages)
266>0	belong&0x03ff0000 0x00910000	\b, sh3 BSD
267>0	belong&0x03ff0000 0x00920000	\b, ppc BSD (Big Endian)
268>0	belong&0x03ff0000 0x00930000	\b, vax BSD (4K pages)
269>0	belong&0x03ff0000 0x00940000	\b, mips1 BSD
270>0	belong&0x03ff0000 0x00950000	\b, mips2 BSD
271>0	belong&0x03ff0000 0x00960000	\b, parisc BSD
272>0	belong&0x03ff0000 0x00970000	\b, sh5/64 BSD
273>0	belong&0x03ff0000 0x00980000	\b, sparc/64 BSD
274>0	belong&0x03ff0000 0x00990000	\b, amd64 BSD
275>0	belong&0x03ff0000 0x009a0000	\b, hp200 (68010) BSD
276>0	belong&0x03ff0000 0x009b0000	\b, hp300 (68020+68881) BSD
277>0	belong&0x03ff0000 0x009b0000	\b, hp300 (68020+68881) BSD
278>0	belong&0x03ff0000 0x00c80000	\b, hp200
279>0	belong&0x03ff0000 0x020b0000	\b, hp300 (68020+68881) HP-UX
280>0	belong&0x03ff0000 0x020c0000	\b, hp300 (68020+68881) HP-UX
281>0	belong&0xfc000000 0x04000000	\b, CPU
282>0	belong&0xfc000000 0x08000000	\b, DATA
283>0	belong&0xfc000000 0x10000000	\b, STACK
284>4	leshort	x			\b, (headersize = %d
285>6	leshort	x			\b, segmentsize = %d
286>6	lelong	x			\b, segments = %d)
287