xref: /dragonfly/contrib/file/magic/Magdir/sun (revision a563ca70)
1
2#------------------------------------------------------------------------------
3# $File: sun,v 1.22 2011/02/10 01:52:51 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.)
8#
90	belong&077777777	0600413		sparc demand paged
10>0	byte		&0x80
11>>20	belong		<4096		shared library
12>>20	belong		=4096		dynamically linked executable
13>>20	belong		>4096		dynamically linked executable
14>0	byte		^0x80		executable
15>16	belong		>0		not stripped
16
170	belong&077777777	0600410		sparc pure
18>0	byte		&0x80		dynamically linked executable
19>0	byte		^0x80		executable
20>16	belong		>0		not stripped
21
220	belong&077777777	0600407		sparc
23>0	byte		&0x80		dynamically linked executable
24>0	byte		^0x80		executable
25>16	belong		>0		not stripped
26
270	belong&077777777	0400413		mc68020 demand paged
28>0	byte		&0x80
29>>20	belong		<4096		shared library
30>>20	belong		=4096		dynamically linked executable
31>>20	belong		>4096		dynamically linked executable
32>0	byte		^0x80		executable
33>16	belong		>0		not stripped
34
350	belong&077777777	0400410		mc68020 pure
36>0	byte		&0x80		dynamically linked executable
37>0	byte		^0x80		executable
38>16	belong		>0		not stripped
39
400	belong&077777777	0400407		mc68020
41>0	byte		&0x80		dynamically linked executable
42>0	byte		^0x80		executable
43>16	belong		>0		not stripped
44
450	belong&077777777	0200413		mc68010 demand paged
46>0	byte		&0x80
47>>20	belong		<4096		shared library
48>>20	belong		=4096		dynamically linked executable
49>>20	belong		>4096		dynamically linked executable
50>0	byte		^0x80		executable
51>16	belong		>0		not stripped
52
530	belong&077777777	0200410		mc68010 pure
54>0	byte		&0x80		dynamically linked executable
55>0	byte		^0x80		executable
56>16	belong		>0		not stripped
57
580	belong&077777777	0200407		mc68010
59>0	byte		&0x80		dynamically linked executable
60>0	byte		^0x80		executable
61>16	belong		>0		not stripped
62
63# reworked these to avoid anything beginning with zero becoming "old sun-2"
640	belong		0407		old sun-2 executable
65>16	belong		>0		not stripped
660	belong		0410		old sun-2 pure executable
67>16	belong		>0		not stripped
680	belong		0413		old sun-2 demand paged executable
69>16	belong		>0		not stripped
70
71#
72# Core files.  "SPARC 4.x BCP" means "core file from a SunOS 4.x SPARC
73# binary executed in compatibility mode under SunOS 5.x".
74#
750	belong		0x080456	SunOS core file
76>4	belong		432		(SPARC)
77>>132	string		>\0		from '%s'
78>>116	belong		=3		(quit)
79>>116	belong		=4		(illegal instruction)
80>>116	belong		=5		(trace trap)
81>>116	belong		=6		(abort)
82>>116	belong		=7		(emulator trap)
83>>116	belong		=8		(arithmetic exception)
84>>116	belong		=9		(kill)
85>>116	belong		=10		(bus error)
86>>116	belong		=11		(segmentation violation)
87>>116	belong		=12		(bad argument to system call)
88>>116	belong		=29		(resource lost)
89>>120	belong		x		(T=%dK,
90>>124	belong		x		D=%dK,
91>>128	belong		x		S=%dK)
92>4	belong		826		(68K)
93>>128	string		>\0		from '%s'
94>4	belong		456		(SPARC 4.x BCP)
95>>152	string		>\0		from '%s'
96# Sun SunPC
970	long		0xfa33c08e	SunPC 4.0 Hard Disk
980	string		#SUNPC_CONFIG	SunPC 4.0 Properties Values
99# Sun snoop (see RFC 1761, which describes the capture file format).
100#
1010	string		snoop		Snoop capture file
102>8	belong		>0		- version %ld
103>12	belong		0		(IEEE 802.3)
104>12	belong		1		(IEEE 802.4)
105>12	belong		2		(IEEE 802.5)
106>12	belong		3		(IEEE 802.6)
107>12	belong		4		(Ethernet)
108>12	belong		5		(HDLC)
109>12	belong		6		(Character synchronous)
110>12	belong		7		(IBM channel-to-channel adapter)
111>12	belong		8		(FDDI)
112>12	belong		9		(Unknown)
113
114# Microsoft ICM color profile
11536	string		acspMSFT	Microsoft ICM Color Profile
116!:mime	application/vnd.iccprofile
117# Sun KCMS
11836	string		acsp		Kodak Color Management System, ICC Profile
119!:mime	application/vnd.iccprofile
120
121#---------------------------------------------------------------------------
122# The following entries have been tested by Duncan Laurie <duncan@sun.com> (a
123# lead Sun/Cobalt developer) who agrees that they are good and worthy of
124# inclusion.
125
126# Boot ROM images for Sun/Cobalt Linux server appliances
1270       string  Cobalt\ Networks\ Inc.\nFirmware\ v     Paged COBALT boot rom
128>38     string x        V%.4s
129
130# New format for Sun/Cobalt boot ROMs is annoying, it stores the version code
131# at the very end where file(1) can't get it.
1320       string CRfs     COBALT boot rom data (Flat boot rom or file system)
133
134
135