2 #------------------------------------------------------------------------------
3 # netbsd: file(1) magic for NetBSD objects
5 # All new-style magic numbers are in network byte order.
8 0 lelong 000000407 a.out NetBSD little-endian object file
9 >16 lelong >0 not stripped
10 0 belong 000000407 a.out NetBSD big-endian object file
11 >16 belong >0 not stripped
13 0 belong&0377777777 041400413 a.out NetBSD/i386 demand paged
15 >>20 lelong <4096 shared library
16 >>20 lelong =4096 dynamically linked executable
17 >>20 lelong >4096 dynamically linked executable
18 >0 byte ^0x80 executable
19 >16 lelong >0 not stripped
20 0 belong&0377777777 041400410 a.out NetBSD/i386 pure
21 >0 byte &0x80 dynamically linked executable
22 >0 byte ^0x80 executable
23 >16 lelong >0 not stripped
24 0 belong&0377777777 041400407 a.out NetBSD/i386
25 >0 byte &0x80 dynamically linked executable
27 >>0 byte &0x40 position independent
28 >>20 lelong !0 executable
29 >>20 lelong =0 object file
30 >16 lelong >0 not stripped
31 0 belong&0377777777 041400507 a.out NetBSD/i386 core
32 >12 string >\0 from '%s'
33 >32 lelong !0 (signal %d)
35 0 belong&0377777777 041600413 a.out NetBSD/m68k demand paged
37 >>20 belong <8192 shared library
38 >>20 belong =8192 dynamically linked executable
39 >>20 belong >8192 dynamically linked executable
40 >0 byte ^0x80 executable
41 >16 belong >0 not stripped
42 0 belong&0377777777 041600410 a.out NetBSD/m68k pure
43 >0 byte &0x80 dynamically linked executable
44 >0 byte ^0x80 executable
45 >16 belong >0 not stripped
46 0 belong&0377777777 041600407 a.out NetBSD/m68k
47 >0 byte &0x80 dynamically linked executable
49 >>0 byte &0x40 position independent
50 >>20 belong !0 executable
51 >>20 belong =0 object file
52 >16 belong >0 not stripped
53 0 belong&0377777777 041600507 a.out NetBSD/m68k core
54 >12 string >\0 from '%s'
55 >32 belong !0 (signal %d)
57 0 belong&0377777777 042000413 a.out NetBSD/m68k4k demand paged
59 >>20 belong <4096 shared library
60 >>20 belong =4096 dynamically linked executable
61 >>20 belong >4096 dynamically linked executable
62 >0 byte ^0x80 executable
63 >16 belong >0 not stripped
64 0 belong&0377777777 042000410 a.out NetBSD/m68k4k pure
65 >0 byte &0x80 dynamically linked executable
66 >0 byte ^0x80 executable
67 >16 belong >0 not stripped
68 0 belong&0377777777 042000407 a.out NetBSD/m68k4k
69 >0 byte &0x80 dynamically linked executable
71 >>0 byte &0x40 position independent
72 >>20 belong !0 executable
73 >>20 belong =0 object file
74 >16 belong >0 not stripped
75 0 belong&0377777777 042000507 a.out NetBSD/m68k4k core
76 >12 string >\0 from '%s'
77 >32 belong !0 (signal %d)
79 0 belong&0377777777 042200413 a.out NetBSD/ns32532 demand paged
81 >>20 lelong <4096 shared library
82 >>20 lelong =4096 dynamically linked executable
83 >>20 lelong >4096 dynamically linked executable
84 >0 byte ^0x80 executable
85 >16 lelong >0 not stripped
86 0 belong&0377777777 042200410 a.out NetBSD/ns32532 pure
87 >0 byte &0x80 dynamically linked executable
88 >0 byte ^0x80 executable
89 >16 lelong >0 not stripped
90 0 belong&0377777777 042200407 a.out NetBSD/ns32532
91 >0 byte &0x80 dynamically linked executable
93 >>0 byte &0x40 position independent
94 >>20 lelong !0 executable
95 >>20 lelong =0 object file
96 >16 lelong >0 not stripped
97 0 belong&0377777777 042200507 a.out NetBSD/ns32532 core
98 >12 string >\0 from '%s'
99 >32 lelong !0 (signal %d)
101 0 belong&0377777777 045200507 a.out NetBSD/powerpc core
102 >12 string >\0 from '%s'
104 0 belong&0377777777 042400413 a.out NetBSD/sparc demand paged
106 >>20 belong <8192 shared library
107 >>20 belong =8192 dynamically linked executable
108 >>20 belong >8192 dynamically linked executable
109 >0 byte ^0x80 executable
110 >16 belong >0 not stripped
111 0 belong&0377777777 042400410 a.out NetBSD/sparc pure
112 >0 byte &0x80 dynamically linked executable
113 >0 byte ^0x80 executable
114 >16 belong >0 not stripped
115 0 belong&0377777777 042400407 a.out NetBSD/sparc
116 >0 byte &0x80 dynamically linked executable
118 >>0 byte &0x40 position independent
119 >>20 belong !0 executable
120 >>20 belong =0 object file
121 >16 belong >0 not stripped
122 0 belong&0377777777 042400507 a.out NetBSD/sparc core
123 >12 string >\0 from '%s'
124 >32 belong !0 (signal %d)
126 0 belong&0377777777 042600413 a.out NetBSD/pmax demand paged
128 >>20 lelong <4096 shared library
129 >>20 lelong =4096 dynamically linked executable
130 >>20 lelong >4096 dynamically linked executable
131 >0 byte ^0x80 executable
132 >16 lelong >0 not stripped
133 0 belong&0377777777 042600410 a.out NetBSD/pmax pure
134 >0 byte &0x80 dynamically linked executable
135 >0 byte ^0x80 executable
136 >16 lelong >0 not stripped
137 0 belong&0377777777 042600407 a.out NetBSD/pmax
138 >0 byte &0x80 dynamically linked executable
140 >>0 byte &0x40 position independent
141 >>20 lelong !0 executable
142 >>20 lelong =0 object file
143 >16 lelong >0 not stripped
144 0 belong&0377777777 042600507 a.out NetBSD/pmax core
145 >12 string >\0 from '%s'
146 >32 lelong !0 (signal %d)
148 0 belong&0377777777 043000413 a.out NetBSD/vax 1k demand paged
150 >>20 lelong <4096 shared library
151 >>20 lelong =4096 dynamically linked executable
152 >>20 lelong >4096 dynamically linked executable
153 >0 byte ^0x80 executable
154 >16 lelong >0 not stripped
155 0 belong&0377777777 043000410 a.out NetBSD/vax 1k pure
156 >0 byte &0x80 dynamically linked executable
157 >0 byte ^0x80 executable
158 >16 lelong >0 not stripped
159 0 belong&0377777777 043000407 a.out NetBSD/vax 1k
160 >0 byte &0x80 dynamically linked executable
162 >>0 byte &0x40 position independent
163 >>20 lelong !0 executable
164 >>20 lelong =0 object file
165 >16 lelong >0 not stripped
166 0 belong&0377777777 043000507 a.out NetBSD/vax 1k core
167 >12 string >\0 from '%s'
168 >32 lelong !0 (signal %d)
170 0 belong&0377777777 045400413 a.out NetBSD/vax 4k demand paged
172 >>20 lelong <4096 shared library
173 >>20 lelong =4096 dynamically linked executable
174 >>20 lelong >4096 dynamically linked executable
175 >0 byte ^0x80 executable
176 >16 lelong >0 not stripped
177 0 belong&0377777777 045400410 a.out NetBSD/vax 4k pure
178 >0 byte &0x80 dynamically linked executable
179 >0 byte ^0x80 executable
180 >16 lelong >0 not stripped
181 0 belong&0377777777 045400407 a.out NetBSD/vax 4k
182 >0 byte &0x80 dynamically linked executable
184 >>0 byte &0x40 position independent
185 >>20 lelong !0 executable
186 >>20 lelong =0 object file
187 >16 lelong >0 not stripped
188 0 belong&0377777777 045400507 a.out NetBSD/vax 4k core
189 >12 string >\0 from '%s'
190 >32 lelong !0 (signal %d)
192 # NetBSD/alpha does not support (and has never supported) a.out objects,
193 # so no rules are provided for them. NetBSD/alpha ELF objects are
194 # dealt with in "elf".
195 0 lelong 0x00070185 ECOFF NetBSD/alpha binary
196 >10 leshort 0x0001 not stripped
197 >10 leshort 0x0000 stripped
198 0 belong&0377777777 043200507 a.out NetBSD/alpha core
199 >12 string >\0 from '%s'
200 >32 lelong !0 (signal %d)
202 0 belong&0377777777 043400413 a.out NetBSD/mips demand paged
204 >>20 belong <8192 shared library
205 >>20 belong =8192 dynamically linked executable
206 >>20 belong >8192 dynamically linked executable
207 >0 byte ^0x80 executable
208 >16 belong >0 not stripped
209 0 belong&0377777777 043400410 a.out NetBSD/mips pure
210 >0 byte &0x80 dynamically linked executable
211 >0 byte ^0x80 executable
212 >16 belong >0 not stripped
213 0 belong&0377777777 043400407 a.out NetBSD/mips
214 >0 byte &0x80 dynamically linked executable
216 >>0 byte &0x40 position independent
217 >>20 belong !0 executable
218 >>20 belong =0 object file
219 >16 belong >0 not stripped
220 0 belong&0377777777 043400507 a.out NetBSD/mips core
221 >12 string >\0 from '%s'
222 >32 belong !0 (signal %d)
224 0 belong&0377777777 043600413 a.out NetBSD/arm32 demand paged
226 >>20 lelong <4096 shared library
227 >>20 lelong =4096 dynamically linked executable
228 >>20 lelong >4096 dynamically linked executable
229 >0 byte ^0x80 executable
230 >16 lelong >0 not stripped
231 0 belong&0377777777 043600410 a.out NetBSD/arm32 pure
232 >0 byte &0x80 dynamically linked executable
233 >0 byte ^0x80 executable
234 >16 lelong >0 not stripped
235 0 belong&0377777777 043600407 a.out NetBSD/arm32
236 >0 byte &0x80 dynamically linked executable
238 >>0 byte &0x40 position independent
239 >>20 lelong !0 executable
240 >>20 lelong =0 object file
241 >16 lelong >0 not stripped
242 # NetBSD/arm26 has always used ELF objects, but it shares a core file
243 # format with NetBSD/arm32.
244 0 belong&0377777777 043600507 a.out NetBSD/arm core
245 >12 string >\0 from '%s'
246 >32 lelong !0 (signal %d)