netbsd 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. #------------------------------------------------------------------------------
  2. # $File: netbsd,v 1.19 2011/10/31 17:23:34 christos Exp $
  3. # netbsd: file(1) magic for NetBSD objects
  4. #
  5. # All new-style magic numbers are in network byte order.
  6. #
  7. 0 lelong 000000407 a.out NetBSD little-endian object file
  8. >16 lelong >0 not stripped
  9. 0 belong 000000407 a.out NetBSD big-endian object file
  10. >16 belong >0 not stripped
  11. 0 belong&0377777777 041400413 a.out NetBSD/i386 demand paged
  12. >0 byte &0x80
  13. >>20 lelong <4096 shared library
  14. >>20 lelong =4096 dynamically linked executable
  15. >>20 lelong >4096 dynamically linked executable
  16. >0 byte ^0x80 executable
  17. >16 lelong >0 not stripped
  18. 0 belong&0377777777 041400410 a.out NetBSD/i386 pure
  19. >0 byte &0x80 dynamically linked executable
  20. >0 byte ^0x80 executable
  21. >16 lelong >0 not stripped
  22. 0 belong&0377777777 041400407 a.out NetBSD/i386
  23. >0 byte &0x80 dynamically linked executable
  24. >0 byte ^0x80
  25. >>0 byte &0x40 position independent
  26. >>20 lelong !0 executable
  27. >>20 lelong =0 object file
  28. >16 lelong >0 not stripped
  29. 0 belong&0377777777 041400507 a.out NetBSD/i386 core
  30. >12 string >\0 from '%s'
  31. >32 lelong !0 (signal %d)
  32. 0 belong&0377777777 041600413 a.out NetBSD/m68k demand paged
  33. >0 byte &0x80
  34. >>20 belong <8192 shared library
  35. >>20 belong =8192 dynamically linked executable
  36. >>20 belong >8192 dynamically linked executable
  37. >0 byte ^0x80 executable
  38. >16 belong >0 not stripped
  39. 0 belong&0377777777 041600410 a.out NetBSD/m68k pure
  40. >0 byte &0x80 dynamically linked executable
  41. >0 byte ^0x80 executable
  42. >16 belong >0 not stripped
  43. 0 belong&0377777777 041600407 a.out NetBSD/m68k
  44. >0 byte &0x80 dynamically linked executable
  45. >0 byte ^0x80
  46. >>0 byte &0x40 position independent
  47. >>20 belong !0 executable
  48. >>20 belong =0 object file
  49. >16 belong >0 not stripped
  50. 0 belong&0377777777 041600507 a.out NetBSD/m68k core
  51. >12 string >\0 from '%s'
  52. >32 belong !0 (signal %d)
  53. 0 belong&0377777777 042000413 a.out NetBSD/m68k4k demand paged
  54. >0 byte &0x80
  55. >>20 belong <4096 shared library
  56. >>20 belong =4096 dynamically linked executable
  57. >>20 belong >4096 dynamically linked executable
  58. >0 byte ^0x80 executable
  59. >16 belong >0 not stripped
  60. 0 belong&0377777777 042000410 a.out NetBSD/m68k4k pure
  61. >0 byte &0x80 dynamically linked executable
  62. >0 byte ^0x80 executable
  63. >16 belong >0 not stripped
  64. 0 belong&0377777777 042000407 a.out NetBSD/m68k4k
  65. >0 byte &0x80 dynamically linked executable
  66. >0 byte ^0x80
  67. >>0 byte &0x40 position independent
  68. >>20 belong !0 executable
  69. >>20 belong =0 object file
  70. >16 belong >0 not stripped
  71. 0 belong&0377777777 042000507 a.out NetBSD/m68k4k core
  72. >12 string >\0 from '%s'
  73. >32 belong !0 (signal %d)
  74. 0 belong&0377777777 042200413 a.out NetBSD/ns32532 demand paged
  75. >0 byte &0x80
  76. >>20 lelong <4096 shared library
  77. >>20 lelong =4096 dynamically linked executable
  78. >>20 lelong >4096 dynamically linked executable
  79. >0 byte ^0x80 executable
  80. >16 lelong >0 not stripped
  81. 0 belong&0377777777 042200410 a.out NetBSD/ns32532 pure
  82. >0 byte &0x80 dynamically linked executable
  83. >0 byte ^0x80 executable
  84. >16 lelong >0 not stripped
  85. 0 belong&0377777777 042200407 a.out NetBSD/ns32532
  86. >0 byte &0x80 dynamically linked executable
  87. >0 byte ^0x80
  88. >>0 byte &0x40 position independent
  89. >>20 lelong !0 executable
  90. >>20 lelong =0 object file
  91. >16 lelong >0 not stripped
  92. 0 belong&0377777777 042200507 a.out NetBSD/ns32532 core
  93. >12 string >\0 from '%s'
  94. >32 lelong !0 (signal %d)
  95. 0 belong&0377777777 045200507 a.out NetBSD/powerpc core
  96. >12 string >\0 from '%s'
  97. 0 belong&0377777777 042400413 a.out NetBSD/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 a.out NetBSD/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 a.out NetBSD/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 a.out NetBSD/sparc core
  116. >12 string >\0 from '%s'
  117. >32 belong !0 (signal %d)
  118. 0 belong&0377777777 042600413 a.out NetBSD/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 a.out NetBSD/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 a.out NetBSD/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 a.out NetBSD/pmax core
  137. >12 string >\0 from '%s'
  138. >32 lelong !0 (signal %d)
  139. 0 belong&0377777777 043000413 a.out NetBSD/vax 1k 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 a.out NetBSD/vax 1k pure
  147. >0 byte &0x80 dynamically linked executable
  148. >0 byte ^0x80 executable
  149. >16 lelong >0 not stripped
  150. 0 belong&0377777777 043000407 a.out NetBSD/vax 1k
  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 a.out NetBSD/vax 1k core
  158. >12 string >\0 from '%s'
  159. >32 lelong !0 (signal %d)
  160. 0 belong&0377777777 045400413 a.out NetBSD/vax 4k demand paged
  161. >0 byte &0x80
  162. >>20 lelong <4096 shared library
  163. >>20 lelong =4096 dynamically linked executable
  164. >>20 lelong >4096 dynamically linked executable
  165. >0 byte ^0x80 executable
  166. >16 lelong >0 not stripped
  167. 0 belong&0377777777 045400410 a.out NetBSD/vax 4k pure
  168. >0 byte &0x80 dynamically linked executable
  169. >0 byte ^0x80 executable
  170. >16 lelong >0 not stripped
  171. 0 belong&0377777777 045400407 a.out NetBSD/vax 4k
  172. >0 byte &0x80 dynamically linked executable
  173. >0 byte ^0x80
  174. >>0 byte &0x40 position independent
  175. >>20 lelong !0 executable
  176. >>20 lelong =0 object file
  177. >16 lelong >0 not stripped
  178. 0 belong&0377777777 045400507 a.out NetBSD/vax 4k core
  179. >12 string >\0 from '%s'
  180. >32 lelong !0 (signal %d)
  181. # NetBSD/alpha does not support (and has never supported) a.out objects,
  182. # so no rules are provided for them. NetBSD/alpha ELF objects are
  183. # dealt with in "elf".
  184. 0 lelong 0x00070185 ECOFF NetBSD/alpha binary
  185. >10 leshort 0x0001 not stripped
  186. >10 leshort 0x0000 stripped
  187. 0 belong&0377777777 043200507 a.out NetBSD/alpha core
  188. >12 string >\0 from '%s'
  189. >32 lelong !0 (signal %d)
  190. 0 belong&0377777777 043400413 a.out NetBSD/mips demand paged
  191. >0 byte &0x80
  192. >>20 belong <8192 shared library
  193. >>20 belong =8192 dynamically linked executable
  194. >>20 belong >8192 dynamically linked executable
  195. >0 byte ^0x80 executable
  196. >16 belong >0 not stripped
  197. 0 belong&0377777777 043400410 a.out NetBSD/mips pure
  198. >0 byte &0x80 dynamically linked executable
  199. >0 byte ^0x80 executable
  200. >16 belong >0 not stripped
  201. 0 belong&0377777777 043400407 a.out NetBSD/mips
  202. >0 byte &0x80 dynamically linked executable
  203. >0 byte ^0x80
  204. >>0 byte &0x40 position independent
  205. >>20 belong !0 executable
  206. >>20 belong =0 object file
  207. >16 belong >0 not stripped
  208. 0 belong&0377777777 043400507 a.out NetBSD/mips core
  209. >12 string >\0 from '%s'
  210. >32 belong !0 (signal %d)
  211. 0 belong&0377777777 043600413 a.out NetBSD/arm32 demand paged
  212. >0 byte &0x80
  213. >>20 lelong <4096 shared library
  214. >>20 lelong =4096 dynamically linked executable
  215. >>20 lelong >4096 dynamically linked executable
  216. >0 byte ^0x80 executable
  217. >16 lelong >0 not stripped
  218. 0 belong&0377777777 043600410 a.out NetBSD/arm32 pure
  219. >0 byte &0x80 dynamically linked executable
  220. >0 byte ^0x80 executable
  221. >16 lelong >0 not stripped
  222. 0 belong&0377777777 043600407 a.out NetBSD/arm32
  223. >0 byte &0x80 dynamically linked executable
  224. >0 byte ^0x80
  225. >>0 byte &0x40 position independent
  226. >>20 lelong !0 executable
  227. >>20 lelong =0 object file
  228. >16 lelong >0 not stripped
  229. # NetBSD/arm26 has always used ELF objects, but it shares a core file
  230. # format with NetBSD/arm32.
  231. 0 belong&0377777777 043600507 a.out NetBSD/arm core
  232. >12 string >\0 from '%s'
  233. >32 lelong !0 (signal %d)
  234. # Kernel core dump format
  235. 0 belong&0x0000ffff 0x00008fca NetBSD kernel core file
  236. >0 belong&0x03ff0000 0x00000000 \b, Unknown
  237. >0 belong&0x03ff0000 0x00001000 \b, sun 68010/68020
  238. >0 belong&0x03ff0000 0x00020000 \b, sun 68020
  239. >0 belong&0x03ff0000 0x00640000 \b, 386 PC
  240. >0 belong&0x03ff0000 0x00860000 \b, i386 BSD
  241. >0 belong&0x03ff0000 0x00870000 \b, m68k BSD (8K pages)
  242. >0 belong&0x03ff0000 0x00880000 \b, m68k BSD (4K pages)
  243. >0 belong&0x03ff0000 0x00890000 \b, ns32532 BSD
  244. >0 belong&0x03ff0000 0x008a0000 \b, sparc/32 BSD
  245. >0 belong&0x03ff0000 0x008b0000 \b, pmax BSD
  246. >0 belong&0x03ff0000 0x008c0000 \b, vax BSD (1K pages)
  247. >0 belong&0x03ff0000 0x008d0000 \b, alpha BSD
  248. >0 belong&0x03ff0000 0x008e0000 \b, mips BSD (Big Endian)
  249. >0 belong&0x03ff0000 0x008f0000 \b, arm6 BSD
  250. >0 belong&0x03ff0000 0x00900000 \b, m68k BSD (2K pages)
  251. >0 belong&0x03ff0000 0x00910000 \b, sh3 BSD
  252. >0 belong&0x03ff0000 0x00920000 \b, ppc BSD (Big Endian)
  253. >0 belong&0x03ff0000 0x00930000 \b, vax BSD (4K pages)
  254. >0 belong&0x03ff0000 0x00940000 \b, mips1 BSD
  255. >0 belong&0x03ff0000 0x00950000 \b, mips2 BSD
  256. >0 belong&0x03ff0000 0x00960000 \b, parisc BSD
  257. >0 belong&0x03ff0000 0x00970000 \b, sh5/64 BSD
  258. >0 belong&0x03ff0000 0x00980000 \b, sparc/64 BSD
  259. >0 belong&0x03ff0000 0x00990000 \b, amd64 BSD
  260. >0 belong&0x03ff0000 0x009a0000 \b, hp200 (68010) BSD
  261. >0 belong&0x03ff0000 0x009b0000 \b, hp300 (68020+68881) BSD
  262. >0 belong&0x03ff0000 0x009b0000 \b, hp300 (68020+68881) BSD
  263. >0 belong&0x03ff0000 0x00c80000 \b, hp200
  264. >0 belong&0x03ff0000 0x020b0000 \b, hp300 (68020+68881) HP-UX
  265. >0 belong&0x03ff0000 0x020c0000 \b, hp300 (68020+68881) HP-UX
  266. >0 belong&0xfc000000 0x04000000 \b, CPU
  267. >0 belong&0xfc000000 0x08000000 \b, DATA
  268. >0 belong&0xfc000000 0x10000000 \b, STACK
  269. >4 leshort x \b, (headersize = %d
  270. >6 leshort x \b, segmentsize = %d
  271. >6 lelong x \b, segments = %d)