xref: /dragonfly/contrib/file/magic/Magdir/sun (revision 73610d44)
1
2#------------------------------------------------------------------------------
3# $File: sun,v 1.27 2014/04/30 21:41:02 christos Exp $
4# sun:  file(1) magic for Sun machines
5#
6# Values for big-endian Sun (MC680x0, SPARC) binaries on pre-5.x
7# releases.  (5.x uses ELF.)  Entries for executables without an
8# architecture type, used before the 68020-based Sun-3's came out,
9# are in aout, as they're indistinguishable from other big-endian
10# 32-bit a.out files.
11#
120	belong&077777777	0600413		a.out SunOS SPARC demand paged
13>0	byte		&0x80
14>>20	belong		<4096		shared library
15>>20	belong		=4096		dynamically linked executable
16>>20	belong		>4096		dynamically linked executable
17>0	byte		^0x80		executable
18>16	belong		>0		not stripped
19
200	belong&077777777	0600410		a.out SunOS SPARC pure
21>0	byte		&0x80		dynamically linked executable
22>0	byte		^0x80		executable
23>16	belong		>0		not stripped
24
250	belong&077777777	0600407		a.out SunOS SPARC
26>0	byte		&0x80		dynamically linked executable
27>0	byte		^0x80		executable
28>16	belong		>0		not stripped
29
300	belong&077777777	0400413		a.out SunOS mc68020 demand paged
31>0	byte		&0x80
32>>20	belong		<4096		shared library
33>>20	belong		=4096		dynamically linked executable
34>>20	belong		>4096		dynamically linked executable
35>0	byte		^0x80		executable
36>16	belong		>0		not stripped
37
380	belong&077777777	0400410		a.out SunOS mc68020 pure
39>0	byte		&0x80		dynamically linked executable
40>0	byte		^0x80		executable
41>16	belong		>0		not stripped
42
430	belong&077777777	0400407		a.out SunOS mc68020
44>0	byte		&0x80		dynamically linked executable
45>0	byte		^0x80		executable
46>16	belong		>0		not stripped
47
480	belong&077777777	0200413		a.out SunOS mc68010 demand paged
49>0	byte		&0x80
50>>20	belong		<4096		shared library
51>>20	belong		=4096		dynamically linked executable
52>>20	belong		>4096		dynamically linked executable
53>0	byte		^0x80		executable
54>16	belong		>0		not stripped
55
560	belong&077777777	0200410		a.out SunOS mc68010 pure
57>0	byte		&0x80		dynamically linked executable
58>0	byte		^0x80		executable
59>16	belong		>0		not stripped
60
610	belong&077777777	0200407		a.out SunOS mc68010
62>0	byte		&0x80		dynamically linked executable
63>0	byte		^0x80		executable
64>16	belong		>0		not stripped
65
66#
67# Core files.  "SPARC 4.x BCP" means "core file from a SunOS 4.x SPARC
68# binary executed in compatibility mode under SunOS 5.x".
69#
700	belong		0x080456	SunOS core file
71>4	belong		432		(SPARC)
72>>132	string		>\0		from '%s'
73>>116	belong		=3		(quit)
74>>116	belong		=4		(illegal instruction)
75>>116	belong		=5		(trace trap)
76>>116	belong		=6		(abort)
77>>116	belong		=7		(emulator trap)
78>>116	belong		=8		(arithmetic exception)
79>>116	belong		=9		(kill)
80>>116	belong		=10		(bus error)
81>>116	belong		=11		(segmentation violation)
82>>116	belong		=12		(bad argument to system call)
83>>116	belong		=29		(resource lost)
84>>120	belong		x		(T=%dK,
85>>124	belong		x		D=%dK,
86>>128	belong		x		S=%dK)
87>4	belong		826		(68K)
88>>128	string		>\0		from '%s'
89>4	belong		456		(SPARC 4.x BCP)
90>>152	string		>\0		from '%s'
91# Sun SunPC
920	long		0xfa33c08e	SunPC 4.0 Hard Disk
930	string		#SUNPC_CONFIG	SunPC 4.0 Properties Values
94# Sun snoop (see RFC 1761, which describes the capture file format,
95# RFC 3827, which describes some additional datalink types, and
96# http://www.iana.org/assignments/snoop-datalink-types/snoop-datalink-types.xml,
97# which is the IANA registry of Snoop datalink types)
98#
990	string		snoop		Snoop capture file
100>8	belong		>0		- version %d
101>12	belong		0		(IEEE 802.3)
102>12	belong		1		(IEEE 802.4)
103>12	belong		2		(IEEE 802.5)
104>12	belong		3		(IEEE 802.6)
105>12	belong		4		(Ethernet)
106>12	belong		5		(HDLC)
107>12	belong		6		(Character synchronous)
108>12	belong		7		(IBM channel-to-channel adapter)
109>12	belong		8		(FDDI)
110>12	belong		9		(Other)
111>12	belong		10		(type %d)
112>12	belong		11		(type %d)
113>12	belong		12		(type %d)
114>12	belong		13		(type %d)
115>12	belong		14		(type %d)
116>12	belong		15		(type %d)
117>12	belong		16		(Fibre Channel)
118>12	belong		17		(ATM)
119>12	belong		18		(ATM Classical IP)
120>12	belong		19		(type %d)
121>12	belong		20		(type %d)
122>12	belong		21		(type %d)
123>12	belong		22		(type %d)
124>12	belong		23		(type %d)
125>12	belong		24		(type %d)
126>12	belong		25		(type %d)
127>12	belong		26		(IP over Infiniband)
128>12	belong		>26		(type %d)
129
130#---------------------------------------------------------------------------
131# The following entries have been tested by Duncan Laurie <duncan@sun.com> (a
132# lead Sun/Cobalt developer) who agrees that they are good and worthy of
133# inclusion.
134
135# Boot ROM images for Sun/Cobalt Linux server appliances
1360       string  Cobalt\ Networks\ Inc.\nFirmware\ v     Paged COBALT boot rom
137>38     string x        V%.4s
138
139# New format for Sun/Cobalt boot ROMs is annoying, it stores the version code
140# at the very end where file(1) can't get it.
1410       string CRfs     COBALT boot rom data (Flat boot rom or file system)
142