xref: /dragonfly/contrib/file/magic/Magdir/mach (revision 89a89091)
1
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#------------------------------------------------------------
90	lelong&0xfffffffe	0xfeedface	Mach-O
10>0	byte		0xcf		64-bit
11>12	lelong		1		object
12>12	lelong		2		executable
13>12	lelong		3		fixed virtual memory shared library
14>12	lelong		4		core
15>12	lelong		5		preload executable
16>12	lelong		6		dynamically linked shared library
17>12	lelong		7		dynamic linker
18>12	lelong		8		bundle
19>12	lelong		9		dynamically linked shared library stub
20>12	lelong		>9
21>>12	lelong		x		filetype=%ld
22>4	lelong		<0
23>>4	lelong		x		architecture=%ld
24>4	lelong		1		vax
25>4	lelong		2		romp
26>4	lelong		3		architecture=3
27>4	lelong		4		ns32032
28>4	lelong		5		ns32332
29>4	lelong		6		m68k
30>4	lelong		7		i386
31>4	lelong		8		mips
32>4	lelong		9		ns32532
33>4	lelong		10		architecture=10
34>4	lelong		11		hppa
35>4	lelong		12		acorn
36>4	lelong		13		m88k
37>4	lelong		14		sparc
38>4	lelong		15		i860-big
39>4	lelong		16		i860
40>4	lelong		17		rs6000
41>4	lelong		18		ppc
42>4	lelong		16777234	ppc64
43>4	lelong		>16777234
44>>4	lelong		x		architecture=%ld
45#
460	belong&0xfffffffe	0xfeedface	Mach-O
47>3	byte		0xcf		64-bit
48>12	belong		1		object
49>12	belong		2		executable
50>12	belong		3		fixed virtual memory shared library
51>12	belong		4		core
52>12	belong		5		preload executable
53>12	belong		6               dynamically linked shared library
54>12	belong		7               dynamic linker
55>12	belong		8		bundle
56>12	belong		9		dynamically linked shared library stub
57>12	belong		>9
58>>12	belong		x		filetype=%ld
59>4	belong		<0
60>>4	belong		x		architecture=%ld
61>4	belong		1		vax
62>4	belong		2		romp
63>4	belong		3		architecture=3
64>4	belong		4		ns32032
65>4	belong		5		ns32332
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)
72>4	belong		7		i386
73>4	belong		8		mips
74>4	belong		9		ns32532
75>4	belong		10		architecture=10
76>4	belong		11		hppa
77>4	belong		12		acorn
78>4	belong		13		m88k
79>4	belong		14		sparc
80>4	belong		15		i860-big
81>4	belong		16		i860
82>4	belong		17		rs6000
83>4	belong		18		ppc
84>4	belong		16777234	ppc64
85>4	belong		>16777234
86>>4	belong		x		architecture=%ld
87