]>
Commit | Line | Data |
---|---|---|
440bd198 A |
1 | |
2 | #------------------------------------------------------------------------------ | |
3 | # OpenBSD: file(1) magic for OpenBSD objects | |
4 | # | |
5 | # All new-style magic numbers are in network byte order. | |
6 | # | |
7 | ||
8 | 0 lelong 000000407 OpenBSD little-endian object file | |
9 | >16 lelong >0 not stripped | |
10 | 0 belong 000000407 OpenBSD big-endian object file | |
11 | >16 belong >0 not stripped | |
12 | ||
13 | 0 belong&0377777777 041400413 OpenBSD/i386 demand paged | |
14 | >0 byte &0x80 | |
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 OpenBSD/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 OpenBSD/i386 | |
25 | >0 byte &0x80 dynamically linked executable | |
26 | >0 byte ^0x80 | |
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 OpenBSD/i386 core | |
32 | >12 string >\0 from '%s' | |
33 | ||
34 | 0 belong&0377777777 041600413 OpenBSD/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 | |
41 | 0 belong&0377777777 041600410 OpenBSD/m68k pure | |
42 | >0 byte &0x80 dynamically linked executable | |
43 | >0 byte ^0x80 executable | |
44 | >16 belong >0 not stripped | |
45 | 0 belong&0377777777 041600407 OpenBSD/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 | |
52 | 0 belong&0377777777 041600507 OpenBSD/m68k core | |
53 | >12 string >\0 from '%s' | |
54 | ||
55 | 0 belong&0377777777 042000413 OpenBSD/m68k4k demand paged | |
56 | >0 byte &0x80 | |
57 | >>20 belong <4096 shared library | |
58 | >>20 belong =4096 dynamically linked executable | |
59 | >>20 belong >4096 dynamically linked executable | |
60 | >0 byte ^0x80 executable | |
61 | >16 belong >0 not stripped | |
62 | 0 belong&0377777777 042000410 OpenBSD/m68k4k pure | |
63 | >0 byte &0x80 dynamically linked executable | |
64 | >0 byte ^0x80 executable | |
65 | >16 belong >0 not stripped | |
66 | 0 belong&0377777777 042000407 OpenBSD/m68k4k | |
67 | >0 byte &0x80 dynamically linked executable | |
68 | >0 byte ^0x80 | |
69 | >>0 byte &0x40 position independent | |
70 | >>20 belong !0 executable | |
71 | >>20 belong =0 object file | |
72 | >16 belong >0 not stripped | |
73 | 0 belong&0377777777 042000507 OpenBSD/m68k4k core | |
74 | >12 string >\0 from '%s' | |
75 | ||
76 | 0 belong&0377777777 042200413 OpenBSD/ns32532 demand paged | |
77 | >0 byte &0x80 | |
78 | >>20 lelong <4096 shared library | |
79 | >>20 lelong =4096 dynamically linked executable | |
80 | >>20 lelong >4096 dynamically linked executable | |
81 | >0 byte ^0x80 executable | |
82 | >16 lelong >0 not stripped | |
83 | 0 belong&0377777777 042200410 OpenBSD/ns32532 pure | |
84 | >0 byte &0x80 dynamically linked executable | |
85 | >0 byte ^0x80 executable | |
86 | >16 lelong >0 not stripped | |
87 | 0 belong&0377777777 042200407 OpenBSD/ns32532 | |
88 | >0 byte &0x80 dynamically linked executable | |
89 | >0 byte ^0x80 | |
90 | >>0 byte &0x40 position independent | |
91 | >>20 lelong !0 executable | |
92 | >>20 lelong =0 object file | |
93 | >16 lelong >0 not stripped | |
94 | 0 belong&0377777777 042200507 OpenBSD/ns32532 core | |
95 | >12 string >\0 from '%s' | |
96 | ||
97 | 0 belong&0377777777 042400413 OpenBSD/sparc demand paged | |
98 | >0 byte &0x80 | |
99 | >>20 belong <8192 shared library | |
100 | >>20 belong =8192 dynamically linked executable | |
101 | >>20 belong >8192 dynamically linked executable | |
102 | >0 byte ^0x80 executable | |
103 | >16 belong >0 not stripped | |
104 | 0 belong&0377777777 042400410 OpenBSD/sparc pure | |
105 | >0 byte &0x80 dynamically linked executable | |
106 | >0 byte ^0x80 executable | |
107 | >16 belong >0 not stripped | |
108 | 0 belong&0377777777 042400407 OpenBSD/sparc | |
109 | >0 byte &0x80 dynamically linked executable | |
110 | >0 byte ^0x80 | |
111 | >>0 byte &0x40 position independent | |
112 | >>20 belong !0 executable | |
113 | >>20 belong =0 object file | |
114 | >16 belong >0 not stripped | |
115 | 0 belong&0377777777 042400507 OpenBSD/sparc core | |
116 | >12 string >\0 from '%s' | |
117 | ||
118 | 0 belong&0377777777 042600413 OpenBSD/pmax demand paged | |
119 | >0 byte &0x80 | |
120 | >>20 lelong <4096 shared library | |
121 | >>20 lelong =4096 dynamically linked executable | |
122 | >>20 lelong >4096 dynamically linked executable | |
123 | >0 byte ^0x80 executable | |
124 | >16 lelong >0 not stripped | |
125 | 0 belong&0377777777 042600410 OpenBSD/pmax pure | |
126 | >0 byte &0x80 dynamically linked executable | |
127 | >0 byte ^0x80 executable | |
128 | >16 lelong >0 not stripped | |
129 | 0 belong&0377777777 042600407 OpenBSD/pmax | |
130 | >0 byte &0x80 dynamically linked executable | |
131 | >0 byte ^0x80 | |
132 | >>0 byte &0x40 position independent | |
133 | >>20 lelong !0 executable | |
134 | >>20 lelong =0 object file | |
135 | >16 lelong >0 not stripped | |
136 | 0 belong&0377777777 042600507 OpenBSD/pmax core | |
137 | >12 string >\0 from '%s' | |
138 | ||
139 | 0 belong&0377777777 043000413 OpenBSD/vax demand paged | |
140 | >0 byte &0x80 | |
141 | >>20 lelong <4096 shared library | |
142 | >>20 lelong =4096 dynamically linked executable | |
143 | >>20 lelong >4096 dynamically linked executable | |
144 | >0 byte ^0x80 executable | |
145 | >16 lelong >0 not stripped | |
146 | 0 belong&0377777777 043000410 OpenBSD/vax pure | |
147 | >0 byte &0x80 dynamically linked executable | |
148 | >0 byte ^0x80 executable | |
149 | >16 lelong >0 not stripped | |
150 | 0 belong&0377777777 043000407 OpenBSD/vax | |
151 | >0 byte &0x80 dynamically linked executable | |
152 | >0 byte ^0x80 | |
153 | >>0 byte &0x40 position independent | |
154 | >>20 lelong !0 executable | |
155 | >>20 lelong =0 object file | |
156 | >16 lelong >0 not stripped | |
157 | 0 belong&0377777777 043000507 OpenBSD/vax core | |
158 | >12 string >\0 from '%s' | |
159 | ||
160 | # OpenBSD/alpha does not support (and has never supported) a.out objects, | |
161 | # so no rules are provided for them. OpenBSD/alpha ELF objects are | |
162 | # dealt with in "elf". | |
163 | 0 leshort 0x00070185 ECOFF OpenBSD/alpha binary | |
164 | >10 leshort 0x0001 not stripped | |
165 | >10 leshort 0x0000 stripped | |
166 | 0 belong&0377777777 043200507 OpenBSD/alpha core | |
167 | >12 string >\0 from '%s' | |
168 | ||
169 | 0 belong&0377777777 043400413 OpenBSD/mips demand paged | |
170 | >0 byte &0x80 | |
171 | >>20 belong <8192 shared library | |
172 | >>20 belong =8192 dynamically linked executable | |
173 | >>20 belong >8192 dynamically linked executable | |
174 | >0 byte ^0x80 executable | |
175 | >16 belong >0 not stripped | |
176 | 0 belong&0377777777 043400410 OpenBSD/mips pure | |
177 | >0 byte &0x80 dynamically linked executable | |
178 | >0 byte ^0x80 executable | |
179 | >16 belong >0 not stripped | |
180 | 0 belong&0377777777 043400407 OpenBSD/mips | |
181 | >0 byte &0x80 dynamically linked executable | |
182 | >0 byte ^0x80 | |
183 | >>0 byte &0x40 position independent | |
184 | >>20 belong !0 executable | |
185 | >>20 belong =0 object file | |
186 | >16 belong >0 not stripped | |
187 | 0 belong&0377777777 043400507 OpenBSD/mips core | |
188 | >12 string >\0 from '%s' | |
189 | ||
190 | 0 belong&0377777777 043600413 OpenBSD/arm32 demand paged | |
191 | >0 byte &0x80 | |
192 | >>20 lelong <8192 shared library | |
193 | >>20 lelong =8192 dynamically linked executable | |
194 | >>20 lelong >8192 dynamically linked executable | |
195 | >0 byte ^0x80 executable | |
196 | >16 lelong >0 not stripped | |
197 | 0 belong&0377777777 043600410 OpenBSD/arm32 pure | |
198 | >0 byte &0x80 dynamically linked executable | |
199 | >0 byte ^0x80 executable | |
200 | >16 lelong >0 not stripped | |
201 | 0 belong&0377777777 043600407 OpenBSD/arm32 | |
202 | >0 byte &0x80 dynamically linked executable | |
203 | >0 byte ^0x80 | |
204 | >>0 byte &0x40 position independent | |
205 | >>20 lelong !0 executable | |
206 | >>20 lelong =0 object file | |
207 | >16 lelong >0 not stripped | |
208 | 0 belong&0377777777 043600507 OpenBSD/arm32 core | |
209 | >12 string >\0 from '%s' |