mach 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #------------------------------------------------------------
  2. # $File: mach,v 1.9 2009/09/19 16:28:10 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 lelong&0xfffffffe 0xfeedface Mach-O
  9. >0 byte 0xcf 64-bit
  10. >12 lelong 1 object
  11. >12 lelong 2 executable
  12. >12 lelong 3 fixed virtual memory shared library
  13. >12 lelong 4 core
  14. >12 lelong 5 preload executable
  15. >12 lelong 6 dynamically linked shared library
  16. >12 lelong 7 dynamic linker
  17. >12 lelong 8 bundle
  18. >12 lelong 9 dynamically linked shared library stub
  19. >12 lelong >9
  20. >>12 lelong x filetype=%ld
  21. >4 lelong <0
  22. >>4 lelong x architecture=%ld
  23. >4 lelong 1 vax
  24. >4 lelong 2 romp
  25. >4 lelong 3 architecture=3
  26. >4 lelong 4 ns32032
  27. >4 lelong 5 ns32332
  28. >4 lelong 6 m68k
  29. >4 lelong 7 i386
  30. >4 lelong 8 mips
  31. >4 lelong 9 ns32532
  32. >4 lelong 10 architecture=10
  33. >4 lelong 11 hppa
  34. >4 lelong 12 acorn
  35. >4 lelong 13 m88k
  36. >4 lelong 14 sparc
  37. >4 lelong 15 i860-big
  38. >4 lelong 16 i860
  39. >4 lelong 17 rs6000
  40. >4 lelong 18 ppc
  41. >4 lelong 16777234 ppc64
  42. >4 lelong >16777234
  43. >>4 lelong x architecture=%ld
  44. #
  45. 0 belong&0xfffffffe 0xfeedface Mach-O
  46. >3 byte 0xcf 64-bit
  47. >12 belong 1 object
  48. >12 belong 2 executable
  49. >12 belong 3 fixed virtual memory shared library
  50. >12 belong 4 core
  51. >12 belong 5 preload executable
  52. >12 belong 6 dynamically linked shared library
  53. >12 belong 7 dynamic linker
  54. >12 belong 8 bundle
  55. >12 belong 9 dynamically linked shared library stub
  56. >12 belong >9
  57. >>12 belong x filetype=%ld
  58. >4 belong <0
  59. >>4 belong x architecture=%ld
  60. >4 belong 1 vax
  61. >4 belong 2 romp
  62. >4 belong 3 architecture=3
  63. >4 belong 4 ns32032
  64. >4 belong 5 ns32332
  65. >4 belong 6 for m68k architecture
  66. # from NeXTstep 3.0 <mach/machine.h>
  67. # i.e. mc680x0_all, ignore
  68. # >>8 belong 1 (mc68030)
  69. >>8 belong 2 (mc68040)
  70. >>8 belong 3 (mc68030 only)
  71. >4 belong 7 i386
  72. >4 belong 8 mips
  73. >4 belong 9 ns32532
  74. >4 belong 10 architecture=10
  75. >4 belong 11 hppa
  76. >4 belong 12 acorn
  77. >4 belong 13 m88k
  78. >4 belong 14 sparc
  79. >4 belong 15 i860-big
  80. >4 belong 16 i860
  81. >4 belong 17 rs6000
  82. >4 belong 18 ppc
  83. >4 belong 16777234 ppc64
  84. >4 belong >16777234
  85. >>4 belong x architecture=%ld