netbsd 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. #------------------------------------------------------------------------------
  2. # $File: netbsd,v 1.22 2014/12/08 20:53:52 christos Exp $
  3. # netbsd: file(1) magic for NetBSD objects
  4. #
  5. # All new-style magic numbers are in network byte order.
  6. # The old-style magic numbers are indistinguishable from the same magic
  7. # numbers used in other systems, and are handled, for all those systems,
  8. # in aout.
  9. #
  10. 0 belong&0377777777 041400413 a.out NetBSD/i386 demand paged
  11. >0 byte &0x80
  12. >>20 lelong <4096 shared library
  13. >>20 lelong =4096 dynamically linked executable
  14. >>20 lelong >4096 dynamically linked executable
  15. >0 byte ^0x80 executable
  16. >16 lelong >0 not stripped
  17. 0 belong&0377777777 041400410 a.out NetBSD/i386 pure
  18. >0 byte &0x80 dynamically linked executable
  19. >0 byte ^0x80 executable
  20. >16 lelong >0 not stripped
  21. 0 belong&0377777777 041400407 a.out NetBSD/i386
  22. >0 byte &0x80 dynamically linked executable
  23. >0 byte ^0x80
  24. >>0 byte &0x40 position independent
  25. >>20 lelong !0 executable
  26. >>20 lelong =0 object file
  27. >16 lelong >0 not stripped
  28. 0 belong&0377777777 041400507 a.out NetBSD/i386 core
  29. >12 string >\0 from '%s'
  30. >32 lelong !0 (signal %d)
  31. 0 belong&0377777777 041600413 a.out NetBSD/m68k demand paged
  32. >0 byte &0x80
  33. >>20 belong <8192 shared library
  34. >>20 belong =8192 dynamically linked executable
  35. >>20 belong >8192 dynamically linked executable
  36. >0 byte ^0x80 executable
  37. >16 belong >0 not stripped
  38. 0 belong&0377777777 041600410 a.out NetBSD/m68k pure
  39. >0 byte &0x80 dynamically linked executable
  40. >0 byte ^0x80 executable
  41. >16 belong >0 not stripped
  42. 0 belong&0377777777 041600407 a.out NetBSD/m68k
  43. >0 byte &0x80 dynamically linked executable
  44. >0 byte ^0x80
  45. >>0 byte &0x40 position independent
  46. >>20 belong !0 executable
  47. >>20 belong =0 object file
  48. >16 belong >0 not stripped
  49. 0 belong&0377777777 041600507 a.out NetBSD/m68k core
  50. >12 string >\0 from '%s'
  51. >32 belong !0 (signal %d)
  52. 0 belong&0377777777 042000413 a.out NetBSD/m68k4k demand paged
  53. >0 byte &0x80
  54. >>20 belong <4096 shared library
  55. >>20 belong =4096 dynamically linked executable
  56. >>20 belong >4096 dynamically linked executable
  57. >0 byte ^0x80 executable
  58. >16 belong >0 not stripped
  59. 0 belong&0377777777 042000410 a.out NetBSD/m68k4k pure
  60. >0 byte &0x80 dynamically linked executable
  61. >0 byte ^0x80 executable
  62. >16 belong >0 not stripped
  63. 0 belong&0377777777 042000407 a.out NetBSD/m68k4k
  64. >0 byte &0x80 dynamically linked executable
  65. >0 byte ^0x80
  66. >>0 byte &0x40 position independent
  67. >>20 belong !0 executable
  68. >>20 belong =0 object file
  69. >16 belong >0 not stripped
  70. 0 belong&0377777777 042000507 a.out NetBSD/m68k4k core
  71. >12 string >\0 from '%s'
  72. >32 belong !0 (signal %d)
  73. 0 belong&0377777777 042200413 a.out NetBSD/ns32532 demand paged
  74. >0 byte &0x80
  75. >>20 lelong <4096 shared library
  76. >>20 lelong =4096 dynamically linked executable
  77. >>20 lelong >4096 dynamically linked executable
  78. >0 byte ^0x80 executable
  79. >16 lelong >0 not stripped
  80. 0 belong&0377777777 042200410 a.out NetBSD/ns32532 pure
  81. >0 byte &0x80 dynamically linked executable
  82. >0 byte ^0x80 executable
  83. >16 lelong >0 not stripped
  84. 0 belong&0377777777 042200407 a.out NetBSD/ns32532
  85. >0 byte &0x80 dynamically linked executable
  86. >0 byte ^0x80
  87. >>0 byte &0x40 position independent
  88. >>20 lelong !0 executable
  89. >>20 lelong =0 object file
  90. >16 lelong >0 not stripped
  91. 0 belong&0377777777 042200507 a.out NetBSD/ns32532 core
  92. >12 string >\0 from '%s'
  93. >32 lelong !0 (signal %d)
  94. 0 belong&0377777777 045200507 a.out NetBSD/powerpc core
  95. >12 string >\0 from '%s'
  96. 0 belong&0377777777 042400413 a.out NetBSD/SPARC demand paged
  97. >0 byte &0x80
  98. >>20 belong <8192 shared library
  99. >>20 belong =8192 dynamically linked executable
  100. >>20 belong >8192 dynamically linked executable
  101. >0 byte ^0x80 executable
  102. >16 belong >0 not stripped
  103. 0 belong&0377777777 042400410 a.out NetBSD/SPARC pure
  104. >0 byte &0x80 dynamically linked executable
  105. >0 byte ^0x80 executable
  106. >16 belong >0 not stripped
  107. 0 belong&0377777777 042400407 a.out NetBSD/SPARC
  108. >0 byte &0x80 dynamically linked executable
  109. >0 byte ^0x80
  110. >>0 byte &0x40 position independent
  111. >>20 belong !0 executable
  112. >>20 belong =0 object file
  113. >16 belong >0 not stripped
  114. 0 belong&0377777777 042400507 a.out NetBSD/SPARC core
  115. >12 string >\0 from '%s'
  116. >32 belong !0 (signal %d)
  117. 0 belong&0377777777 042600413 a.out NetBSD/pmax demand paged
  118. >0 byte &0x80
  119. >>20 lelong <4096 shared library
  120. >>20 lelong =4096 dynamically linked executable
  121. >>20 lelong >4096 dynamically linked executable
  122. >0 byte ^0x80 executable
  123. >16 lelong >0 not stripped
  124. 0 belong&0377777777 042600410 a.out NetBSD/pmax pure
  125. >0 byte &0x80 dynamically linked executable
  126. >0 byte ^0x80 executable
  127. >16 lelong >0 not stripped
  128. 0 belong&0377777777 042600407 a.out NetBSD/pmax
  129. >0 byte &0x80 dynamically linked executable
  130. >0 byte ^0x80
  131. >>0 byte &0x40 position independent
  132. >>20 lelong !0 executable
  133. >>20 lelong =0 object file
  134. >16 lelong >0 not stripped
  135. 0 belong&0377777777 042600507 a.out NetBSD/pmax core
  136. >12 string >\0 from '%s'
  137. >32 lelong !0 (signal %d)
  138. 0 belong&0377777777 043000413 a.out NetBSD/vax 1k demand paged
  139. >0 byte &0x80
  140. >>20 lelong <4096 shared library
  141. >>20 lelong =4096 dynamically linked executable
  142. >>20 lelong >4096 dynamically linked executable
  143. >0 byte ^0x80 executable
  144. >16 lelong >0 not stripped
  145. 0 belong&0377777777 043000410 a.out NetBSD/vax 1k pure
  146. >0 byte &0x80 dynamically linked executable
  147. >0 byte ^0x80 executable
  148. >16 lelong >0 not stripped
  149. 0 belong&0377777777 043000407 a.out NetBSD/vax 1k
  150. >0 byte &0x80 dynamically linked executable
  151. >0 byte ^0x80
  152. >>0 byte &0x40 position independent
  153. >>20 lelong !0 executable
  154. >>20 lelong =0 object file
  155. >16 lelong >0 not stripped
  156. 0 belong&0377777777 043000507 a.out NetBSD/vax 1k core
  157. >12 string >\0 from '%s'
  158. >32 lelong !0 (signal %d)
  159. 0 belong&0377777777 045400413 a.out NetBSD/vax 4k demand paged
  160. >0 byte &0x80
  161. >>20 lelong <4096 shared library
  162. >>20 lelong =4096 dynamically linked executable
  163. >>20 lelong >4096 dynamically linked executable
  164. >0 byte ^0x80 executable
  165. >16 lelong >0 not stripped
  166. 0 belong&0377777777 045400410 a.out NetBSD/vax 4k pure
  167. >0 byte &0x80 dynamically linked executable
  168. >0 byte ^0x80 executable
  169. >16 lelong >0 not stripped
  170. 0 belong&0377777777 045400407 a.out NetBSD/vax 4k
  171. >0 byte &0x80 dynamically linked executable
  172. >0 byte ^0x80
  173. >>0 byte &0x40 position independent
  174. >>20 lelong !0 executable
  175. >>20 lelong =0 object file
  176. >16 lelong >0 not stripped
  177. 0 belong&0377777777 045400507 a.out NetBSD/vax 4k core
  178. >12 string >\0 from '%s'
  179. >32 lelong !0 (signal %d)
  180. # NetBSD/alpha does not support (and has never supported) a.out objects,
  181. # so no rules are provided for them. NetBSD/alpha ELF objects are
  182. # dealt with in "elf".
  183. 0 lelong 0x00070185 ECOFF NetBSD/alpha binary
  184. >10 leshort 0x0001 not stripped
  185. >10 leshort 0x0000 stripped
  186. 0 belong&0377777777 043200507 a.out NetBSD/alpha core
  187. >12 string >\0 from '%s'
  188. >32 lelong !0 (signal %d)
  189. 0 belong&0377777777 043400413 a.out NetBSD/mips demand paged
  190. >0 byte &0x80
  191. >>20 belong <8192 shared library
  192. >>20 belong =8192 dynamically linked executable
  193. >>20 belong >8192 dynamically linked executable
  194. >0 byte ^0x80 executable
  195. >16 belong >0 not stripped
  196. 0 belong&0377777777 043400410 a.out NetBSD/mips pure
  197. >0 byte &0x80 dynamically linked executable
  198. >0 byte ^0x80 executable
  199. >16 belong >0 not stripped
  200. 0 belong&0377777777 043400407 a.out NetBSD/mips
  201. >0 byte &0x80 dynamically linked executable
  202. >0 byte ^0x80
  203. >>0 byte &0x40 position independent
  204. >>20 belong !0 executable
  205. >>20 belong =0 object file
  206. >16 belong >0 not stripped
  207. 0 belong&0377777777 043400507 a.out NetBSD/mips core
  208. >12 string >\0 from '%s'
  209. >32 belong !0 (signal %d)
  210. 0 belong&0377777777 043600413 a.out NetBSD/arm32 demand paged
  211. >0 byte &0x80
  212. >>20 lelong <4096 shared library
  213. >>20 lelong =4096 dynamically linked executable
  214. >>20 lelong >4096 dynamically linked executable
  215. >0 byte ^0x80 executable
  216. >16 lelong >0 not stripped
  217. 0 belong&0377777777 043600410 a.out NetBSD/arm32 pure
  218. >0 byte &0x80 dynamically linked executable
  219. >0 byte ^0x80 executable
  220. >16 lelong >0 not stripped
  221. 0 belong&0377777777 043600407 a.out NetBSD/arm32
  222. >0 byte &0x80 dynamically linked executable
  223. >0 byte ^0x80
  224. >>0 byte &0x40 position independent
  225. >>20 lelong !0 executable
  226. >>20 lelong =0 object file
  227. >16 lelong >0 not stripped
  228. # NetBSD/arm26 has always used ELF objects, but it shares a core file
  229. # format with NetBSD/arm32.
  230. 0 belong&0377777777 043600507 a.out NetBSD/arm core
  231. >12 string >\0 from '%s'
  232. >32 lelong !0 (signal %d)
  233. # Kernel core dump format
  234. 0 belong&0x0000ffff 0x00008fca NetBSD kernel core file
  235. >0 belong&0x03ff0000 0x00000000 \b, Unknown
  236. >0 belong&0x03ff0000 0x00010000 \b, sun 68010/68020
  237. >0 belong&0x03ff0000 0x00020000 \b, sun 68020
  238. >0 belong&0x03ff0000 0x00640000 \b, 386 PC
  239. >0 belong&0x03ff0000 0x00860000 \b, i386 BSD
  240. >0 belong&0x03ff0000 0x00870000 \b, m68k BSD (8K pages)
  241. >0 belong&0x03ff0000 0x00880000 \b, m68k BSD (4K pages)
  242. >0 belong&0x03ff0000 0x00890000 \b, ns32532 BSD
  243. >0 belong&0x03ff0000 0x008a0000 \b, SPARC/32 BSD
  244. >0 belong&0x03ff0000 0x008b0000 \b, pmax BSD
  245. >0 belong&0x03ff0000 0x008c0000 \b, vax BSD (1K pages)
  246. >0 belong&0x03ff0000 0x008d0000 \b, alpha BSD
  247. >0 belong&0x03ff0000 0x008e0000 \b, mips BSD (Big Endian)
  248. >0 belong&0x03ff0000 0x008f0000 \b, arm6 BSD
  249. >0 belong&0x03ff0000 0x00900000 \b, m68k BSD (2K pages)
  250. >0 belong&0x03ff0000 0x00910000 \b, sh3 BSD
  251. >0 belong&0x03ff0000 0x00950000 \b, ppc BSD (Big Endian)
  252. >0 belong&0x03ff0000 0x00960000 \b, vax BSD (4K pages)
  253. >0 belong&0x03ff0000 0x00970000 \b, mips1 BSD
  254. >0 belong&0x03ff0000 0x00980000 \b, mips2 BSD
  255. >0 belong&0x03ff0000 0x00990000 \b, m88k BSD
  256. >0 belong&0x03ff0000 0x00920000 \b, parisc BSD
  257. >0 belong&0x03ff0000 0x009b0000 \b, sh5/64 BSD
  258. >0 belong&0x03ff0000 0x009c0000 \b, SPARC/64 BSD
  259. >0 belong&0x03ff0000 0x009d0000 \b, amd64 BSD
  260. >0 belong&0x03ff0000 0x009e0000 \b, sh5/32 BSD
  261. >0 belong&0x03ff0000 0x009f0000 \b, ia64 BSD
  262. >0 belong&0x03ff0000 0x00b70000 \b, aarch64 BSD
  263. >0 belong&0x03ff0000 0x00b80000 \b, or1k BSD
  264. >0 belong&0x03ff0000 0x00b90000 \b, Risk-V BSD
  265. >0 belong&0x03ff0000 0x00c80000 \b, hp200 BSD
  266. >0 belong&0x03ff0000 0x012c0000 \b, hp300 BSD
  267. >0 belong&0x03ff0000 0x020b0000 \b, hp800 HP-UX
  268. >0 belong&0x03ff0000 0x020c0000 \b, hp200/hp300 HP-UX
  269. >0 belong&0xfc000000 0x04000000 \b, CPU
  270. >0 belong&0xfc000000 0x08000000 \b, DATA
  271. >0 belong&0xfc000000 0x10000000 \b, STACK
  272. >4 leshort x \b, (headersize = %d
  273. >6 leshort x \b, segmentsize = %d
  274. >6 lelong x \b, segments = %d)