xref: /openbsd-src/usr.bin/file/magdir/netbsd (revision 2d885e6d21a22d0c343fdf08c2331609433580e2)
1*2d885e6dSchl#	$OpenBSD: netbsd,v 1.2 2008/05/14 20:45:35 chl Exp $
2380b5c7dSchl
3380b5c7dSchl#------------------------------------------------------------------------------
4380b5c7dSchl# netbsd:  file(1) magic for NetBSD objects
5380b5c7dSchl#
6380b5c7dSchl# All new-style magic numbers are in network byte order.
7380b5c7dSchl#
8380b5c7dSchl
9380b5c7dSchl0	lelong			000000407	a.out NetBSD little-endian object file
10380b5c7dSchl>16	lelong			>0		not stripped
11380b5c7dSchl0	belong			000000407	a.out NetBSD big-endian object file
12380b5c7dSchl>16	belong			>0		not stripped
13380b5c7dSchl
14380b5c7dSchl0	belong&0377777777	041400413	a.out NetBSD/i386 demand paged
15380b5c7dSchl>0	byte			&0x80
16380b5c7dSchl>>20	lelong			<4096		shared library
17380b5c7dSchl>>20	lelong			=4096		dynamically linked executable
18380b5c7dSchl>>20	lelong			>4096		dynamically linked executable
19380b5c7dSchl>0	byte			^0x80		executable
20380b5c7dSchl>16	lelong			>0		not stripped
21380b5c7dSchl0	belong&0377777777	041400410	a.out NetBSD/i386 pure
22380b5c7dSchl>0	byte			&0x80		dynamically linked executable
23380b5c7dSchl>0	byte			^0x80		executable
24380b5c7dSchl>16	lelong			>0		not stripped
25380b5c7dSchl0	belong&0377777777	041400407	a.out NetBSD/i386
26380b5c7dSchl>0	byte			&0x80		dynamically linked executable
27380b5c7dSchl>0	byte			^0x80
28380b5c7dSchl>>0	byte			&0x40		position independent
29380b5c7dSchl>>20	lelong			!0		executable
30380b5c7dSchl>>20	lelong			=0		object file
31380b5c7dSchl>16	lelong			>0		not stripped
32380b5c7dSchl0	belong&0377777777	041400507	a.out NetBSD/i386 core
33380b5c7dSchl>12	string			>\0		from '%s'
34380b5c7dSchl>32	lelong			!0		(signal %d)
35380b5c7dSchl
36380b5c7dSchl0	belong&0377777777	041600413	a.out NetBSD/m68k demand paged
37380b5c7dSchl>0	byte			&0x80
38380b5c7dSchl>>20	belong			<8192		shared library
39380b5c7dSchl>>20	belong			=8192		dynamically linked executable
40380b5c7dSchl>>20	belong			>8192		dynamically linked executable
41380b5c7dSchl>0	byte			^0x80		executable
42380b5c7dSchl>16	belong			>0		not stripped
43380b5c7dSchl0	belong&0377777777	041600410	a.out NetBSD/m68k pure
44380b5c7dSchl>0	byte			&0x80		dynamically linked executable
45380b5c7dSchl>0	byte			^0x80		executable
46380b5c7dSchl>16	belong			>0		not stripped
47380b5c7dSchl0	belong&0377777777	041600407	a.out NetBSD/m68k
48380b5c7dSchl>0	byte			&0x80		dynamically linked executable
49380b5c7dSchl>0	byte			^0x80
50380b5c7dSchl>>0	byte			&0x40		position independent
51380b5c7dSchl>>20	belong			!0		executable
52380b5c7dSchl>>20	belong			=0		object file
53380b5c7dSchl>16	belong			>0		not stripped
54380b5c7dSchl0	belong&0377777777	041600507	a.out NetBSD/m68k core
55380b5c7dSchl>12	string			>\0		from '%s'
56380b5c7dSchl>32	belong			!0		(signal %d)
57380b5c7dSchl
58380b5c7dSchl0	belong&0377777777	042000413	a.out NetBSD/m68k4k demand paged
59380b5c7dSchl>0	byte			&0x80
60380b5c7dSchl>>20	belong			<4096		shared library
61380b5c7dSchl>>20	belong			=4096		dynamically linked executable
62380b5c7dSchl>>20	belong			>4096		dynamically linked executable
63380b5c7dSchl>0	byte			^0x80		executable
64380b5c7dSchl>16	belong			>0		not stripped
65380b5c7dSchl0	belong&0377777777	042000410	a.out NetBSD/m68k4k pure
66380b5c7dSchl>0	byte			&0x80		dynamically linked executable
67380b5c7dSchl>0	byte			^0x80		executable
68380b5c7dSchl>16	belong			>0		not stripped
69380b5c7dSchl0	belong&0377777777	042000407	a.out NetBSD/m68k4k
70380b5c7dSchl>0	byte			&0x80		dynamically linked executable
71380b5c7dSchl>0	byte			^0x80
72380b5c7dSchl>>0	byte			&0x40		position independent
73380b5c7dSchl>>20	belong			!0		executable
74380b5c7dSchl>>20	belong			=0		object file
75380b5c7dSchl>16	belong			>0		not stripped
76380b5c7dSchl0	belong&0377777777	042000507	a.out NetBSD/m68k4k core
77380b5c7dSchl>12	string			>\0		from '%s'
78380b5c7dSchl>32	belong			!0		(signal %d)
79380b5c7dSchl
80380b5c7dSchl0	belong&0377777777	042200413	a.out NetBSD/ns32532 demand paged
81380b5c7dSchl>0	byte			&0x80
82380b5c7dSchl>>20	lelong			<4096		shared library
83380b5c7dSchl>>20	lelong			=4096		dynamically linked executable
84380b5c7dSchl>>20	lelong			>4096		dynamically linked executable
85380b5c7dSchl>0	byte			^0x80		executable
86380b5c7dSchl>16	lelong			>0		not stripped
87380b5c7dSchl0	belong&0377777777	042200410	a.out NetBSD/ns32532 pure
88380b5c7dSchl>0	byte			&0x80		dynamically linked executable
89380b5c7dSchl>0	byte			^0x80		executable
90380b5c7dSchl>16	lelong			>0		not stripped
91380b5c7dSchl0	belong&0377777777	042200407	a.out NetBSD/ns32532
92380b5c7dSchl>0	byte			&0x80		dynamically linked executable
93380b5c7dSchl>0	byte			^0x80
94380b5c7dSchl>>0	byte			&0x40		position independent
95380b5c7dSchl>>20	lelong			!0		executable
96380b5c7dSchl>>20	lelong			=0		object file
97380b5c7dSchl>16	lelong			>0		not stripped
98380b5c7dSchl0	belong&0377777777	042200507	a.out NetBSD/ns32532 core
99380b5c7dSchl>12	string			>\0		from '%s'
100380b5c7dSchl>32	lelong			!0		(signal %d)
101380b5c7dSchl
102380b5c7dSchl0	belong&0377777777	045200507	a.out NetBSD/powerpc core
103380b5c7dSchl>12	string			>\0		from '%s'
104380b5c7dSchl
105380b5c7dSchl0	belong&0377777777	042400413	a.out NetBSD/sparc demand paged
106380b5c7dSchl>0	byte			&0x80
107380b5c7dSchl>>20	belong			<8192		shared library
108380b5c7dSchl>>20	belong			=8192		dynamically linked executable
109380b5c7dSchl>>20	belong			>8192		dynamically linked executable
110380b5c7dSchl>0	byte			^0x80		executable
111380b5c7dSchl>16	belong			>0		not stripped
112380b5c7dSchl0	belong&0377777777	042400410	a.out NetBSD/sparc pure
113380b5c7dSchl>0	byte			&0x80		dynamically linked executable
114380b5c7dSchl>0	byte			^0x80		executable
115380b5c7dSchl>16	belong			>0		not stripped
116380b5c7dSchl0	belong&0377777777	042400407	a.out NetBSD/sparc
117380b5c7dSchl>0	byte			&0x80		dynamically linked executable
118380b5c7dSchl>0	byte			^0x80
119380b5c7dSchl>>0	byte			&0x40		position independent
120380b5c7dSchl>>20	belong			!0		executable
121380b5c7dSchl>>20	belong			=0		object file
122380b5c7dSchl>16	belong			>0		not stripped
123380b5c7dSchl0	belong&0377777777	042400507	a.out NetBSD/sparc core
124380b5c7dSchl>12	string			>\0		from '%s'
125380b5c7dSchl>32	belong			!0		(signal %d)
126380b5c7dSchl
127380b5c7dSchl0	belong&0377777777	042600413	a.out NetBSD/pmax demand paged
128380b5c7dSchl>0	byte			&0x80
129380b5c7dSchl>>20	lelong			<4096		shared library
130380b5c7dSchl>>20	lelong			=4096		dynamically linked executable
131380b5c7dSchl>>20	lelong			>4096		dynamically linked executable
132380b5c7dSchl>0	byte			^0x80		executable
133380b5c7dSchl>16	lelong			>0		not stripped
134380b5c7dSchl0	belong&0377777777	042600410	a.out NetBSD/pmax pure
135380b5c7dSchl>0	byte			&0x80		dynamically linked executable
136380b5c7dSchl>0	byte			^0x80		executable
137380b5c7dSchl>16	lelong			>0		not stripped
138380b5c7dSchl0	belong&0377777777	042600407	a.out NetBSD/pmax
139380b5c7dSchl>0	byte			&0x80		dynamically linked executable
140380b5c7dSchl>0	byte			^0x80
141380b5c7dSchl>>0	byte			&0x40		position independent
142380b5c7dSchl>>20	lelong			!0		executable
143380b5c7dSchl>>20	lelong			=0		object file
144380b5c7dSchl>16	lelong			>0		not stripped
145380b5c7dSchl0	belong&0377777777	042600507	a.out NetBSD/pmax core
146380b5c7dSchl>12	string			>\0		from '%s'
147380b5c7dSchl>32	lelong			!0		(signal %d)
148380b5c7dSchl
149380b5c7dSchl0	belong&0377777777	043000413	a.out NetBSD/vax 1k demand paged
150380b5c7dSchl>0	byte			&0x80
151380b5c7dSchl>>20	lelong			<4096		shared library
152380b5c7dSchl>>20	lelong			=4096		dynamically linked executable
153380b5c7dSchl>>20	lelong			>4096		dynamically linked executable
154380b5c7dSchl>0	byte			^0x80		executable
155380b5c7dSchl>16	lelong			>0		not stripped
156380b5c7dSchl0	belong&0377777777	043000410	a.out NetBSD/vax 1k pure
157380b5c7dSchl>0	byte			&0x80		dynamically linked executable
158380b5c7dSchl>0	byte			^0x80		executable
159380b5c7dSchl>16	lelong			>0		not stripped
160380b5c7dSchl0	belong&0377777777	043000407	a.out NetBSD/vax 1k
161380b5c7dSchl>0	byte			&0x80		dynamically linked executable
162380b5c7dSchl>0	byte			^0x80
163380b5c7dSchl>>0	byte			&0x40		position independent
164380b5c7dSchl>>20	lelong			!0		executable
165380b5c7dSchl>>20	lelong			=0		object file
166380b5c7dSchl>16	lelong			>0		not stripped
167380b5c7dSchl0	belong&0377777777	043000507	a.out NetBSD/vax 1k core
168380b5c7dSchl>12	string			>\0		from '%s'
169380b5c7dSchl>32	lelong			!0		(signal %d)
170380b5c7dSchl
171380b5c7dSchl0	belong&0377777777	045400413	a.out NetBSD/vax 4k demand paged
172380b5c7dSchl>0	byte			&0x80
173380b5c7dSchl>>20	lelong			<4096		shared library
174380b5c7dSchl>>20	lelong			=4096		dynamically linked executable
175380b5c7dSchl>>20	lelong			>4096		dynamically linked executable
176380b5c7dSchl>0	byte			^0x80		executable
177380b5c7dSchl>16	lelong			>0		not stripped
178380b5c7dSchl0	belong&0377777777	045400410	a.out NetBSD/vax 4k pure
179380b5c7dSchl>0	byte			&0x80		dynamically linked executable
180380b5c7dSchl>0	byte			^0x80		executable
181380b5c7dSchl>16	lelong			>0		not stripped
182380b5c7dSchl0	belong&0377777777	045400407	a.out NetBSD/vax 4k
183380b5c7dSchl>0	byte			&0x80		dynamically linked executable
184380b5c7dSchl>0	byte			^0x80
185380b5c7dSchl>>0	byte			&0x40		position independent
186380b5c7dSchl>>20	lelong			!0		executable
187380b5c7dSchl>>20	lelong			=0		object file
188380b5c7dSchl>16	lelong			>0		not stripped
189380b5c7dSchl0	belong&0377777777	045400507	a.out NetBSD/vax 4k core
190380b5c7dSchl>12	string			>\0		from '%s'
191380b5c7dSchl>32	lelong			!0		(signal %d)
192380b5c7dSchl
193380b5c7dSchl# NetBSD/alpha does not support (and has never supported) a.out objects,
194380b5c7dSchl# so no rules are provided for them.  NetBSD/alpha ELF objects are
195380b5c7dSchl# dealt with in "elf".
196380b5c7dSchl0	lelong		0x00070185		ECOFF NetBSD/alpha binary
197380b5c7dSchl>10	leshort		0x0001			not stripped
198380b5c7dSchl>10	leshort		0x0000			stripped
199380b5c7dSchl0	belong&0377777777	043200507	a.out NetBSD/alpha core
200380b5c7dSchl>12	string			>\0		from '%s'
201380b5c7dSchl>32	lelong			!0		(signal %d)
202380b5c7dSchl
203380b5c7dSchl0	belong&0377777777	043400413	a.out NetBSD/mips demand paged
204380b5c7dSchl>0	byte			&0x80
205380b5c7dSchl>>20	belong			<8192		shared library
206380b5c7dSchl>>20	belong			=8192		dynamically linked executable
207380b5c7dSchl>>20	belong			>8192		dynamically linked executable
208380b5c7dSchl>0	byte			^0x80		executable
209380b5c7dSchl>16	belong			>0		not stripped
210380b5c7dSchl0	belong&0377777777	043400410	a.out NetBSD/mips pure
211380b5c7dSchl>0	byte			&0x80		dynamically linked executable
212380b5c7dSchl>0	byte			^0x80		executable
213380b5c7dSchl>16	belong			>0		not stripped
214380b5c7dSchl0	belong&0377777777	043400407	a.out NetBSD/mips
215380b5c7dSchl>0	byte			&0x80		dynamically linked executable
216380b5c7dSchl>0	byte			^0x80
217380b5c7dSchl>>0	byte			&0x40		position independent
218380b5c7dSchl>>20	belong			!0		executable
219380b5c7dSchl>>20	belong			=0		object file
220380b5c7dSchl>16	belong			>0		not stripped
221380b5c7dSchl0	belong&0377777777	043400507	a.out NetBSD/mips core
222380b5c7dSchl>12	string			>\0		from '%s'
223380b5c7dSchl>32	belong			!0		(signal %d)
224380b5c7dSchl
225380b5c7dSchl0	belong&0377777777	043600413	a.out NetBSD/arm32 demand paged
226380b5c7dSchl>0	byte			&0x80
227380b5c7dSchl>>20	lelong			<4096		shared library
228380b5c7dSchl>>20	lelong			=4096		dynamically linked executable
229380b5c7dSchl>>20	lelong			>4096		dynamically linked executable
230380b5c7dSchl>0	byte			^0x80		executable
231380b5c7dSchl>16	lelong			>0		not stripped
232380b5c7dSchl0	belong&0377777777	043600410	a.out NetBSD/arm32 pure
233380b5c7dSchl>0	byte			&0x80		dynamically linked executable
234380b5c7dSchl>0	byte			^0x80		executable
235380b5c7dSchl>16	lelong			>0		not stripped
236380b5c7dSchl0	belong&0377777777	043600407	a.out NetBSD/arm32
237380b5c7dSchl>0	byte			&0x80		dynamically linked executable
238380b5c7dSchl>0	byte			^0x80
239380b5c7dSchl>>0	byte			&0x40		position independent
240380b5c7dSchl>>20	lelong			!0		executable
241380b5c7dSchl>>20	lelong			=0		object file
242380b5c7dSchl>16	lelong			>0		not stripped
243380b5c7dSchl# NetBSD/arm26 has always used ELF objects, but it shares a core file
244380b5c7dSchl# format with NetBSD/arm32.
245380b5c7dSchl0	belong&0377777777	043600507	a.out NetBSD/arm core
246380b5c7dSchl>12	string			>\0		from '%s'
247380b5c7dSchl>32	lelong			!0		(signal %d)
248