mach 2.3 KB

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