xref: /dflybsd-src/contrib/file/magic/Magdir/sun (revision 6fca56fb90a257291c53bba3b861b751027c3e3d)
1327e51cbSPeter Avalos
2327e51cbSPeter Avalos#------------------------------------------------------------------------------
36fca56fbSSascha Wildner# $File: sun,v 1.28 2019/04/19 00:42:27 christos Exp $
4327e51cbSPeter Avalos# sun:  file(1) magic for Sun machines
5327e51cbSPeter Avalos#
6327e51cbSPeter Avalos# Values for big-endian Sun (MC680x0, SPARC) binaries on pre-5.x
7e8af9738SPeter Avalos# releases.  (5.x uses ELF.)  Entries for executables without an
8e8af9738SPeter Avalos# architecture type, used before the 68020-based Sun-3's came out,
9e8af9738SPeter Avalos# are in aout, as they're indistinguishable from other big-endian
10e8af9738SPeter Avalos# 32-bit a.out files.
11327e51cbSPeter Avalos#
12*82c5fa3eSPeter Avalos0	belong&077777777	0600413		a.out SunOS SPARC demand paged
13327e51cbSPeter Avalos>0	byte		&0x80
14327e51cbSPeter Avalos>>20	belong		<4096		shared library
15327e51cbSPeter Avalos>>20	belong		=4096		dynamically linked executable
16327e51cbSPeter Avalos>>20	belong		>4096		dynamically linked executable
17327e51cbSPeter Avalos>0	byte		^0x80		executable
18327e51cbSPeter Avalos>16	belong		>0		not stripped
19327e51cbSPeter Avalos
20*82c5fa3eSPeter Avalos0	belong&077777777	0600410		a.out SunOS SPARC pure
21327e51cbSPeter Avalos>0	byte		&0x80		dynamically linked executable
22327e51cbSPeter Avalos>0	byte		^0x80		executable
23327e51cbSPeter Avalos>16	belong		>0		not stripped
24327e51cbSPeter Avalos
25*82c5fa3eSPeter Avalos0	belong&077777777	0600407		a.out SunOS SPARC
26327e51cbSPeter Avalos>0	byte		&0x80		dynamically linked executable
27327e51cbSPeter Avalos>0	byte		^0x80		executable
28327e51cbSPeter Avalos>16	belong		>0		not stripped
29327e51cbSPeter Avalos
30e8af9738SPeter Avalos0	belong&077777777	0400413		a.out SunOS mc68020 demand paged
31327e51cbSPeter Avalos>0	byte		&0x80
32327e51cbSPeter Avalos>>20	belong		<4096		shared library
33327e51cbSPeter Avalos>>20	belong		=4096		dynamically linked executable
34327e51cbSPeter Avalos>>20	belong		>4096		dynamically linked executable
35327e51cbSPeter Avalos>0	byte		^0x80		executable
36327e51cbSPeter Avalos>16	belong		>0		not stripped
37327e51cbSPeter Avalos
38e8af9738SPeter Avalos0	belong&077777777	0400410		a.out SunOS mc68020 pure
39327e51cbSPeter Avalos>0	byte		&0x80		dynamically linked executable
40327e51cbSPeter Avalos>0	byte		^0x80		executable
41327e51cbSPeter Avalos>16	belong		>0		not stripped
42327e51cbSPeter Avalos
43e8af9738SPeter Avalos0	belong&077777777	0400407		a.out SunOS mc68020
44327e51cbSPeter Avalos>0	byte		&0x80		dynamically linked executable
45327e51cbSPeter Avalos>0	byte		^0x80		executable
46327e51cbSPeter Avalos>16	belong		>0		not stripped
47327e51cbSPeter Avalos
48e8af9738SPeter Avalos0	belong&077777777	0200413		a.out SunOS mc68010 demand paged
49327e51cbSPeter Avalos>0	byte		&0x80
50327e51cbSPeter Avalos>>20	belong		<4096		shared library
51327e51cbSPeter Avalos>>20	belong		=4096		dynamically linked executable
52327e51cbSPeter Avalos>>20	belong		>4096		dynamically linked executable
53327e51cbSPeter Avalos>0	byte		^0x80		executable
54327e51cbSPeter Avalos>16	belong		>0		not stripped
55327e51cbSPeter Avalos
56e8af9738SPeter Avalos0	belong&077777777	0200410		a.out SunOS mc68010 pure
57327e51cbSPeter Avalos>0	byte		&0x80		dynamically linked executable
58327e51cbSPeter Avalos>0	byte		^0x80		executable
59327e51cbSPeter Avalos>16	belong		>0		not stripped
60327e51cbSPeter Avalos
61e8af9738SPeter Avalos0	belong&077777777	0200407		a.out SunOS mc68010
62327e51cbSPeter Avalos>0	byte		&0x80		dynamically linked executable
63327e51cbSPeter Avalos>0	byte		^0x80		executable
64327e51cbSPeter Avalos>16	belong		>0		not stripped
65327e51cbSPeter Avalos
66327e51cbSPeter Avalos#
67327e51cbSPeter Avalos# Core files.  "SPARC 4.x BCP" means "core file from a SunOS 4.x SPARC
68327e51cbSPeter Avalos# binary executed in compatibility mode under SunOS 5.x".
69327e51cbSPeter Avalos#
70327e51cbSPeter Avalos0	belong		0x080456	SunOS core file
71327e51cbSPeter Avalos>4	belong		432		(SPARC)
72327e51cbSPeter Avalos>>132	string		>\0		from '%s'
73327e51cbSPeter Avalos>>116	belong		=3		(quit)
74327e51cbSPeter Avalos>>116	belong		=4		(illegal instruction)
75327e51cbSPeter Avalos>>116	belong		=5		(trace trap)
76327e51cbSPeter Avalos>>116	belong		=6		(abort)
77327e51cbSPeter Avalos>>116	belong		=7		(emulator trap)
78327e51cbSPeter Avalos>>116	belong		=8		(arithmetic exception)
79327e51cbSPeter Avalos>>116	belong		=9		(kill)
80327e51cbSPeter Avalos>>116	belong		=10		(bus error)
81327e51cbSPeter Avalos>>116	belong		=11		(segmentation violation)
82327e51cbSPeter Avalos>>116	belong		=12		(bad argument to system call)
83327e51cbSPeter Avalos>>116	belong		=29		(resource lost)
84327e51cbSPeter Avalos>>120	belong		x		(T=%dK,
85327e51cbSPeter Avalos>>124	belong		x		D=%dK,
86327e51cbSPeter Avalos>>128	belong		x		S=%dK)
87327e51cbSPeter Avalos>4	belong		826		(68K)
88327e51cbSPeter Avalos>>128	string		>\0		from '%s'
89327e51cbSPeter Avalos>4	belong		456		(SPARC 4.x BCP)
90327e51cbSPeter Avalos>>152	string		>\0		from '%s'
91327e51cbSPeter Avalos# Sun SunPC
92327e51cbSPeter Avalos0	long		0xfa33c08e	SunPC 4.0 Hard Disk
93327e51cbSPeter Avalos0	string		#SUNPC_CONFIG	SunPC 4.0 Properties Values
94e8af9738SPeter Avalos# Sun snoop (see RFC 1761, which describes the capture file format,
95e8af9738SPeter Avalos# RFC 3827, which describes some additional datalink types, and
966fca56fbSSascha Wildner# https://www.iana.org/assignments/snoop-datalink-types/snoop-datalink-types.xml,
97e8af9738SPeter Avalos# which is the IANA registry of Snoop datalink types)
98327e51cbSPeter Avalos#
99327e51cbSPeter Avalos0	string		snoop		Snoop capture file
100*82c5fa3eSPeter Avalos>8	belong		>0		- version %d
101327e51cbSPeter Avalos>12	belong		0		(IEEE 802.3)
102327e51cbSPeter Avalos>12	belong		1		(IEEE 802.4)
103327e51cbSPeter Avalos>12	belong		2		(IEEE 802.5)
104327e51cbSPeter Avalos>12	belong		3		(IEEE 802.6)
105327e51cbSPeter Avalos>12	belong		4		(Ethernet)
106327e51cbSPeter Avalos>12	belong		5		(HDLC)
107327e51cbSPeter Avalos>12	belong		6		(Character synchronous)
108327e51cbSPeter Avalos>12	belong		7		(IBM channel-to-channel adapter)
109327e51cbSPeter Avalos>12	belong		8		(FDDI)
110e8af9738SPeter Avalos>12	belong		9		(Other)
111*82c5fa3eSPeter Avalos>12	belong		10		(type %d)
112*82c5fa3eSPeter Avalos>12	belong		11		(type %d)
113*82c5fa3eSPeter Avalos>12	belong		12		(type %d)
114*82c5fa3eSPeter Avalos>12	belong		13		(type %d)
115*82c5fa3eSPeter Avalos>12	belong		14		(type %d)
116*82c5fa3eSPeter Avalos>12	belong		15		(type %d)
117e8af9738SPeter Avalos>12	belong		16		(Fibre Channel)
118e8af9738SPeter Avalos>12	belong		17		(ATM)
119e8af9738SPeter Avalos>12	belong		18		(ATM Classical IP)
120*82c5fa3eSPeter Avalos>12	belong		19		(type %d)
121*82c5fa3eSPeter Avalos>12	belong		20		(type %d)
122*82c5fa3eSPeter Avalos>12	belong		21		(type %d)
123*82c5fa3eSPeter Avalos>12	belong		22		(type %d)
124*82c5fa3eSPeter Avalos>12	belong		23		(type %d)
125*82c5fa3eSPeter Avalos>12	belong		24		(type %d)
126*82c5fa3eSPeter Avalos>12	belong		25		(type %d)
127e8af9738SPeter Avalos>12	belong		26		(IP over Infiniband)
128*82c5fa3eSPeter Avalos>12	belong		>26		(type %d)
129327e51cbSPeter Avalos
130327e51cbSPeter Avalos#---------------------------------------------------------------------------
131327e51cbSPeter Avalos# The following entries have been tested by Duncan Laurie <duncan@sun.com> (a
132327e51cbSPeter Avalos# lead Sun/Cobalt developer) who agrees that they are good and worthy of
133327e51cbSPeter Avalos# inclusion.
134327e51cbSPeter Avalos
135327e51cbSPeter Avalos# Boot ROM images for Sun/Cobalt Linux server appliances
136327e51cbSPeter Avalos0       string  Cobalt\ Networks\ Inc.\nFirmware\ v     Paged COBALT boot rom
137327e51cbSPeter Avalos>38     string x        V%.4s
138327e51cbSPeter Avalos
139327e51cbSPeter Avalos# New format for Sun/Cobalt boot ROMs is annoying, it stores the version code
140327e51cbSPeter Avalos# at the very end where file(1) can't get it.
141327e51cbSPeter Avalos0       string CRfs     COBALT boot rom data (Flat boot rom or file system)
142