mach 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. #------------------------------------------------------------
  2. # $File: mach,v 1.14 2013/01/04 23:35:53 christos Exp $
  3. # Mach has two magic numbers, 0xcafebabe and 0xfeedface.
  4. # Unfortunately the first, cafebabe, is shared with
  5. # Java ByteCode, so they are both handled in the file "cafebabe".
  6. # The "feedface" ones are handled herein.
  7. #------------------------------------------------------------
  8. 0 name mach-o-be
  9. >0 byte 0xcf 64-bit
  10. # if set, it's for the 64-bit version of the architecture
  11. # yes, this is separate from the low-order magic number bit
  12. # it's also separate from the "64-bit libraries" bit in the
  13. # upper 8 bits of the CPU subtype
  14. >4 belong&0x01000000 0
  15. #
  16. # 32-bit ABIs.
  17. #
  18. # 1 vax
  19. >>4 belong&0x00ffffff 1
  20. >>>8 belong&0x00ffffff 0 vax
  21. >>>8 belong&0x00ffffff 1 vax11/780
  22. >>>8 belong&0x00ffffff 2 vax11/785
  23. >>>8 belong&0x00ffffff 3 vax11/750
  24. >>>8 belong&0x00ffffff 4 vax11/730
  25. >>>8 belong&0x00ffffff 5 uvaxI
  26. >>>8 belong&0x00ffffff 6 uvaxII
  27. >>>8 belong&0x00ffffff 7 vax8200
  28. >>>8 belong&0x00ffffff 8 vax8500
  29. >>>8 belong&0x00ffffff 9 vax8600
  30. >>>8 belong&0x00ffffff 10 vax8650
  31. >>>8 belong&0x00ffffff 11 vax8800
  32. >>>8 belong&0x00ffffff 12 uvaxIII
  33. >>>8 belong&0x00ffffff >12 vax subarchitecture=%ld
  34. >>4 belong&0x00ffffff 2 romp
  35. >>4 belong&0x00ffffff 3 architecture=3
  36. >>4 belong&0x00ffffff 4 ns32032
  37. >>4 belong&0x00ffffff 5 ns32332
  38. >>4 belong&0x00ffffff 6 m68k
  39. # 7 x86
  40. >>4 belong&0x00ffffff 7
  41. >>>8 belong&0x0000000f 3 i386
  42. >>>8 belong&0x0000000f 4 i486
  43. >>>>8 belong&0x00fffff0 0
  44. >>>>8 belong&0x00fffff0 0x80 \bsx
  45. >>>8 belong&0x0000000f 5 i586
  46. >>>8 belong&0x0000000f 6
  47. >>>>8 belong&0x00fffff0 0 p6
  48. >>>>8 belong&0x00fffff0 0x10 pentium_pro
  49. >>>>8 belong&0x00fffff0 0x20 pentium_2_m0x20
  50. >>>>8 belong&0x00fffff0 0x30 pentium_2_m3
  51. >>>>8 belong&0x00fffff0 0x40 pentium_2_m0x40
  52. >>>>8 belong&0x00fffff0 0x50 pentium_2_m5
  53. >>>>8 belong&0x00fffff0 >0x50 pentium_2_m0x%lx
  54. >>>8 belong&0x0000000f 7 celeron
  55. >>>>8 belong&0x00fffff0 0x00 \b_m0x%lx
  56. >>>>8 belong&0x00fffff0 0x10 \b_m0x%lx
  57. >>>>8 belong&0x00fffff0 0x20 \b_m0x%lx
  58. >>>>8 belong&0x00fffff0 0x30 \b_m0x%lx
  59. >>>>8 belong&0x00fffff0 0x40 \b_m0x%lx
  60. >>>>8 belong&0x00fffff0 0x50 \b_m0x%lx
  61. >>>>8 belong&0x00fffff0 0x60
  62. >>>>8 belong&0x00fffff0 0x70 \b_mobile
  63. >>>>8 belong&0x00fffff0 >0x70 \b_m0x%lx
  64. >>>8 belong&0x0000000f 8 pentium_3
  65. >>>>8 belong&0x00fffff0 0x00
  66. >>>>8 belong&0x00fffff0 0x10 \b_m
  67. >>>>8 belong&0x00fffff0 0x20 \b_xeon
  68. >>>>8 belong&0x00fffff0 >0x20 \b_m0x%lx
  69. >>>8 belong&0x0000000f 9 pentiumM
  70. >>>>8 belong&0x00fffff0 0x00
  71. >>>>8 belong&0x00fffff0 >0x00 \b_m0x%lx
  72. >>>8 belong&0x0000000f 10 pentium_4
  73. >>>>8 belong&0x00fffff0 0x00
  74. >>>>8 belong&0x00fffff0 0x10 \b_m
  75. >>>>8 belong&0x00fffff0 >0x10 \b_m0x%lx
  76. >>>8 belong&0x0000000f 11 itanium
  77. >>>>8 belong&0x00fffff0 0x00
  78. >>>>8 belong&0x00fffff0 0x10 \b_2
  79. >>>>8 belong&0x00fffff0 >0x10 \b_m0x%lx
  80. >>>8 belong&0x0000000f 12 xeon
  81. >>>>8 belong&0x00fffff0 0x00
  82. >>>>8 belong&0x00fffff0 0x10 \b_mp
  83. >>>>8 belong&0x00fffff0 >0x10 \b_m0x%lx
  84. >>>8 belong&0x0000000f >12 ia32 family=%ld
  85. >>>>8 belong&0x00fffff0 0x00
  86. >>>>8 belong&0x00fffff0 >0x00 model=%lx
  87. >>4 belong&0x00ffffff 8 mips
  88. >>>8 belong&0x00ffffff 1 R2300
  89. >>>8 belong&0x00ffffff 2 R2600
  90. >>>8 belong&0x00ffffff 3 R2800
  91. >>>8 belong&0x00ffffff 4 R2000a
  92. >>>8 belong&0x00ffffff 5 R2000
  93. >>>8 belong&0x00ffffff 6 R3000a
  94. >>>8 belong&0x00ffffff 7 R3000
  95. >>>8 belong&0x00ffffff >7 subarchitecture=%ld
  96. >>4 belong&0x00ffffff 9 ns32532
  97. >>4 belong&0x00ffffff 10 mc98000
  98. >>4 belong&0x00ffffff 11 hppa
  99. >>>8 belong&0x00ffffff 0 7100
  100. >>>8 belong&0x00ffffff 1 7100LC
  101. >>>8 belong&0x00ffffff >1 subarchitecture=%ld
  102. >>4 belong&0x00ffffff 12 arm
  103. >>>8 belong&0x00ffffff 0
  104. >>>8 belong&0x00ffffff 1 subarchitecture=%ld
  105. >>>8 belong&0x00ffffff 2 subarchitecture=%ld
  106. >>>8 belong&0x00ffffff 3 subarchitecture=%ld
  107. >>>8 belong&0x00ffffff 4 subarchitecture=%ld
  108. >>>8 belong&0x00ffffff 5 \b_v4t
  109. >>>8 belong&0x00ffffff 6 \b_v6
  110. >>>8 belong&0x00ffffff 7 \b_v5tej
  111. >>>8 belong&0x00ffffff 8 \b_xscale
  112. >>>8 belong&0x00ffffff 9 \b_v7
  113. >>>8 belong&0x00ffffff 10 \b_v7f
  114. >>>8 belong&0x00ffffff 11 subarchitecture=%ld
  115. >>>8 belong&0x00ffffff 12 \b_v7k
  116. >>>8 belong&0x00ffffff >12 subarchitecture=%ld
  117. # 13 m88k
  118. >>4 belong&0x00ffffff 13
  119. >>>8 belong&0x00ffffff 0 mc88000
  120. >>>8 belong&0x00ffffff 1 mc88100
  121. >>>8 belong&0x00ffffff 2 mc88110
  122. >>>8 belong&0x00ffffff >2 mc88000 subarchitecture=%ld
  123. >>4 belong&0x00ffffff 14 sparc
  124. >>4 belong&0x00ffffff 15 i860g
  125. >>4 belong&0x00ffffff 16 alpha
  126. >>4 belong&0x00ffffff 17 rs6000
  127. >>4 belong&0x00ffffff 18 ppc
  128. >>>8 belong&0x00ffffff 0
  129. >>>8 belong&0x00ffffff 1 \b_601
  130. >>>8 belong&0x00ffffff 2 \b_602
  131. >>>8 belong&0x00ffffff 3 \b_603
  132. >>>8 belong&0x00ffffff 4 \b_603e
  133. >>>8 belong&0x00ffffff 5 \b_603ev
  134. >>>8 belong&0x00ffffff 6 \b_604
  135. >>>8 belong&0x00ffffff 7 \b_604e
  136. >>>8 belong&0x00ffffff 8 \b_620
  137. >>>8 belong&0x00ffffff 9 \b_650
  138. >>>8 belong&0x00ffffff 10 \b_7400
  139. >>>8 belong&0x00ffffff 11 \b_7450
  140. >>>8 belong&0x00ffffff 100 \b_970
  141. >>>8 belong&0x00ffffff >100 subarchitecture=%ld
  142. >>4 belong&0x00ffffff >18 architecture=%ld
  143. >4 belong&0x01000000 0x01000000
  144. #
  145. # 64-bit ABIs.
  146. #
  147. >>4 belong&0x00ffffff 0 64-bit architecture=%ld
  148. >>4 belong&0x00ffffff 1 64-bit architecture=%ld
  149. >>4 belong&0x00ffffff 2 64-bit architecture=%ld
  150. >>4 belong&0x00ffffff 3 64-bit architecture=%ld
  151. >>4 belong&0x00ffffff 4 64-bit architecture=%ld
  152. >>4 belong&0x00ffffff 5 64-bit architecture=%ld
  153. >>4 belong&0x00ffffff 6 64-bit architecture=%ld
  154. >>4 belong&0x00ffffff 7 x86_64
  155. >>>8 belong&0x00ffffff 0 subarchitecture=%ld
  156. >>>8 belong&0x00ffffff 1 subarchitecture=%ld
  157. >>>8 belong&0x00ffffff 2 subarchitecture=%ld
  158. >>>8 belong&0x00ffffff 3
  159. >>>8 belong&0x00ffffff 4 \b_arch1
  160. >>>8 belong&0x00ffffff >4 subarchitecture=%ld
  161. >>4 belong&0x00ffffff 8 64-bit architecture=%ld
  162. >>4 belong&0x00ffffff 9 64-bit architecture=%ld
  163. >>4 belong&0x00ffffff 10 64-bit architecture=%ld
  164. >>4 belong&0x00ffffff 11 64-bit architecture=%ld
  165. >>4 belong&0x00ffffff 12 64-bit architecture=%ld
  166. >>4 belong&0x00ffffff 13 64-bit architecture=%ld
  167. >>4 belong&0x00ffffff 14 64-bit architecture=%ld
  168. >>4 belong&0x00ffffff 15 64-bit architecture=%ld
  169. >>4 belong&0x00ffffff 16 64-bit architecture=%ld
  170. >>4 belong&0x00ffffff 17 64-bit architecture=%ld
  171. >>4 belong&0x00ffffff 18 ppc64
  172. >>>8 belong&0x00ffffff 0
  173. >>>8 belong&0x00ffffff 1 \b_601
  174. >>>8 belong&0x00ffffff 2 \b_602
  175. >>>8 belong&0x00ffffff 3 \b_603
  176. >>>8 belong&0x00ffffff 4 \b_603e
  177. >>>8 belong&0x00ffffff 5 \b_603ev
  178. >>>8 belong&0x00ffffff 6 \b_604
  179. >>>8 belong&0x00ffffff 7 \b_604e
  180. >>>8 belong&0x00ffffff 8 \b_620
  181. >>>8 belong&0x00ffffff 9 \b_650
  182. >>>8 belong&0x00ffffff 10 \b_7400
  183. >>>8 belong&0x00ffffff 11 \b_7450
  184. >>>8 belong&0x00ffffff 100 \b_970
  185. >>>8 belong&0x00ffffff >100 subarchitecture=%ld
  186. >>4 belong&0x00ffffff >18 64-bit architecture=%ld
  187. >12 belong 1 object
  188. >12 belong 2 executable
  189. >12 belong 3 fixed virtual memory shared library
  190. >12 belong 4 core
  191. >12 belong 5 preload executable
  192. >12 belong 6 dynamically linked shared library
  193. >12 belong 7 dynamic linker
  194. >12 belong 8 bundle
  195. >12 belong 9 dynamically linked shared library stub
  196. >12 belong 10 dSYM companion file
  197. >12 belong 11 kext bundle
  198. >12 belong >11
  199. >>12 belong x filetype=%ld
  200. #
  201. 0 lelong&0xfffffffe 0xfeedface Mach-O
  202. >0 use \^mach-o-be
  203. 0 belong&0xfffffffe 0xfeedface Mach-O
  204. >0 use mach-o-be