2 #------------------------------------------------------------
3 # $File: mach,v 1.9 2009/09/19 16:28:10 christos Exp $
4 # Mach has two magic numbers, 0xcafebabe and 0xfeedface.
5 # Unfortunately the first, cafebabe, is shared with
6 # Java ByteCode, so they are both handled in the file "cafebabe".
7 # The "feedface" ones are handled herein.
8 #------------------------------------------------------------
9 0 lelong&0xfffffffe 0xfeedface Mach-O
12 >12 lelong 2 executable
13 >12 lelong 3 fixed virtual memory shared library
15 >12 lelong 5 preload executable
16 >12 lelong 6 dynamically linked shared library
17 >12 lelong 7 dynamic linker
19 >12 lelong 9 dynamically linked shared library stub
21 >>12 lelong x filetype=%ld
23 >>4 lelong x architecture=%ld
26 >4 lelong 3 architecture=3
33 >4 lelong 10 architecture=10
42 >4 lelong 16777234 ppc64
44 >>4 lelong x architecture=%ld
46 0 belong&0xfffffffe 0xfeedface Mach-O
49 >12 belong 2 executable
50 >12 belong 3 fixed virtual memory shared library
52 >12 belong 5 preload executable
53 >12 belong 6 dynamically linked shared library
54 >12 belong 7 dynamic linker
56 >12 belong 9 dynamically linked shared library stub
58 >>12 belong x filetype=%ld
60 >>4 belong x architecture=%ld
63 >4 belong 3 architecture=3
66 >4 belong 6 for m68k architecture
67 # from NeXTstep 3.0 <mach/machine.h>
68 # i.e. mc680x0_all, ignore
69 # >>8 belong 1 (mc68030)
70 >>8 belong 2 (mc68040)
71 >>8 belong 3 (mc68030 only)
75 >4 belong 10 architecture=10
84 >4 belong 16777234 ppc64
86 >>4 belong x architecture=%ld