2 #------------------------------------------------------------------------------
3 # $File: sun,v 1.22 2011/02/10 01:52:51 christos Exp $
4 # sun: file(1) magic for Sun machines
6 # Values for big-endian Sun (MC680x0, SPARC) binaries on pre-5.x
7 # releases. (5.x uses ELF.)
9 0 belong&077777777 0600413 sparc demand paged
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
17 0 belong&077777777 0600410 sparc pure
18 >0 byte &0x80 dynamically linked executable
19 >0 byte ^0x80 executable
20 >16 belong >0 not stripped
22 0 belong&077777777 0600407 sparc
23 >0 byte &0x80 dynamically linked executable
24 >0 byte ^0x80 executable
25 >16 belong >0 not stripped
27 0 belong&077777777 0400413 mc68020 demand paged
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
35 0 belong&077777777 0400410 mc68020 pure
36 >0 byte &0x80 dynamically linked executable
37 >0 byte ^0x80 executable
38 >16 belong >0 not stripped
40 0 belong&077777777 0400407 mc68020
41 >0 byte &0x80 dynamically linked executable
42 >0 byte ^0x80 executable
43 >16 belong >0 not stripped
45 0 belong&077777777 0200413 mc68010 demand paged
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
53 0 belong&077777777 0200410 mc68010 pure
54 >0 byte &0x80 dynamically linked executable
55 >0 byte ^0x80 executable
56 >16 belong >0 not stripped
58 0 belong&077777777 0200407 mc68010
59 >0 byte &0x80 dynamically linked executable
60 >0 byte ^0x80 executable
61 >16 belong >0 not stripped
63 # reworked these to avoid anything beginning with zero becoming "old sun-2"
64 0 belong 0407 old sun-2 executable
65 >16 belong >0 not stripped
66 0 belong 0410 old sun-2 pure executable
67 >16 belong >0 not stripped
68 0 belong 0413 old sun-2 demand paged executable
69 >16 belong >0 not stripped
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".
75 0 belong 0x080456 SunOS core file
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,
93 >>128 string >\0 from '%s'
94 >4 belong 456 (SPARC 4.x BCP)
95 >>152 string >\0 from '%s'
97 0 long 0xfa33c08e SunPC 4.0 Hard Disk
98 0 string #SUNPC_CONFIG SunPC 4.0 Properties Values
99 # Sun snoop (see RFC 1761, which describes the capture file format).
101 0 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)
109 >12 belong 6 (Character synchronous)
110 >12 belong 7 (IBM channel-to-channel adapter)
112 >12 belong 9 (Unknown)
114 # Microsoft ICM color profile
115 36 string acspMSFT Microsoft ICM Color Profile
116 !:mime application/vnd.iccprofile
118 36 string acsp Kodak Color Management System, ICC Profile
119 !:mime application/vnd.iccprofile
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
126 # Boot ROM images for Sun/Cobalt Linux server appliances
127 0 string Cobalt\ Networks\ Inc.\nFirmware\ v Paged COBALT boot rom
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.
132 0 string CRfs COBALT boot rom data (Flat boot rom or file system)