xref: /freebsd/contrib/file/magic/Magdir/sun (revision ae316d1d1cffd71ab7751f94e10118777a88e027)
1
2#------------------------------------------------------------------------------
3# $File: sun,v 1.29 2024/03/31 15:06:56 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#
12# Note:		already handled as "SPARC demand paged" by ./bsdi
13#0	belong&077777777	0600413		a.out SunOS SPARC demand paged
14#>0	byte		&0x80
15#>>20	belong		<4096		shared library
16#>>20	belong		=4096		dynamically linked executable~
17#>>20	belong		>4096		dynamically linked executable
18#>0	byte		^0x80		executable
19#>16	belong		>0		not stripped
20
210	belong&077777777	0600410		a.out SunOS SPARC pure
22>0	byte		&0x80		dynamically linked executable
23>0	byte		^0x80		executable
24>16	belong		>0		not stripped
25
260	belong&077777777	0600407		a.out SunOS SPARC
27>0	byte		&0x80		dynamically linked executable
28>0	byte		^0x80		executable
29>16	belong		>0		not stripped
30
310	belong&077777777	0400413		a.out SunOS mc68020 demand paged
32>0	byte		&0x80
33>>20	belong		<4096		shared library
34>>20	belong		=4096		dynamically linked executable
35>>20	belong		>4096		dynamically linked executable
36>0	byte		^0x80		executable
37>16	belong		>0		not stripped
38
390	belong&077777777	0400410		a.out SunOS mc68020 pure
40>0	byte		&0x80		dynamically linked executable
41>0	byte		^0x80		executable
42>16	belong		>0		not stripped
43
440	belong&077777777	0400407		a.out SunOS mc68020
45>0	byte		&0x80		dynamically linked executable
46>0	byte		^0x80		executable
47>16	belong		>0		not stripped
48
490	belong&077777777	0200413		a.out SunOS mc68010 demand paged
50>0	byte		&0x80
51>>20	belong		<4096		shared library
52>>20	belong		=4096		dynamically linked executable
53>>20	belong		>4096		dynamically linked executable
54>0	byte		^0x80		executable
55>16	belong		>0		not stripped
56
570	belong&077777777	0200410		a.out SunOS mc68010 pure
58>0	byte		&0x80		dynamically linked executable
59>0	byte		^0x80		executable
60>16	belong		>0		not stripped
61
620	belong&077777777	0200407		a.out SunOS mc68010
63>0	byte		&0x80		dynamically linked executable
64>0	byte		^0x80		executable
65>16	belong		>0		not stripped
66
67#
68# Core files.  "SPARC 4.x BCP" means "core file from a SunOS 4.x SPARC
69# binary executed in compatibility mode under SunOS 5.x".
70#
710	belong		0x080456	SunOS core file
72>4	belong		432		(SPARC)
73>>132	string		>\0		from '%s'
74>>116	belong		=3		(quit)
75>>116	belong		=4		(illegal instruction)
76>>116	belong		=5		(trace trap)
77>>116	belong		=6		(abort)
78>>116	belong		=7		(emulator trap)
79>>116	belong		=8		(arithmetic exception)
80>>116	belong		=9		(kill)
81>>116	belong		=10		(bus error)
82>>116	belong		=11		(segmentation violation)
83>>116	belong		=12		(bad argument to system call)
84>>116	belong		=29		(resource lost)
85>>120	belong		x		(T=%dK,
86>>124	belong		x		D=%dK,
87>>128	belong		x		S=%dK)
88>4	belong		826		(68K)
89>>128	string		>\0		from '%s'
90>4	belong		456		(SPARC 4.x BCP)
91>>152	string		>\0		from '%s'
92# Sun SunPC
930	long		0xfa33c08e	SunPC 4.0 Hard Disk
940	string		#SUNPC_CONFIG	SunPC 4.0 Properties Values
95# Sun snoop (see RFC 1761, which describes the capture file format,
96# RFC 3827, which describes some additional datalink types, and
97# https://www.iana.org/assignments/snoop-datalink-types/snoop-datalink-types.xml,
98# which is the IANA registry of Snoop datalink types)
99#
1000	string		snoop		Snoop capture file
101>8	belong		>0		- version %d
102>12	belong		0		(IEEE 802.3)
103>12	belong		1		(IEEE 802.4)
104>12	belong		2		(IEEE 802.5)
105>12	belong		3		(IEEE 802.6)
106>12	belong		4		(Ethernet)
107>12	belong		5		(HDLC)
108>12	belong		6		(Character synchronous)
109>12	belong		7		(IBM channel-to-channel adapter)
110>12	belong		8		(FDDI)
111>12	belong		9		(Other)
112>12	belong		10		(type %d)
113>12	belong		11		(type %d)
114>12	belong		12		(type %d)
115>12	belong		13		(type %d)
116>12	belong		14		(type %d)
117>12	belong		15		(type %d)
118>12	belong		16		(Fibre Channel)
119>12	belong		17		(ATM)
120>12	belong		18		(ATM Classical IP)
121>12	belong		19		(type %d)
122>12	belong		20		(type %d)
123>12	belong		21		(type %d)
124>12	belong		22		(type %d)
125>12	belong		23		(type %d)
126>12	belong		24		(type %d)
127>12	belong		25		(type %d)
128>12	belong		26		(IP over Infiniband)
129>12	belong		>26		(type %d)
130
131#---------------------------------------------------------------------------
132# The following entries have been tested by Duncan Laurie <duncan@sun.com> (a
133# lead Sun/Cobalt developer) who agrees that they are good and worthy of
134# inclusion.
135
136# Boot ROM images for Sun/Cobalt Linux server appliances
1370       string  Cobalt\ Networks\ Inc.\nFirmware\ v     Paged COBALT boot rom
138>38     string x        V%.4s
139
140# New format for Sun/Cobalt boot ROMs is annoying, it stores the version code
141# at the very end where file(1) can't get it.
1420       string CRfs     COBALT boot rom data (Flat boot rom or file system)
143