Import file-5.18.
[dragonfly.git] / contrib / file / magic / Magdir / sun
1
2 #------------------------------------------------------------------------------
3 # $File: sun,v 1.25 2013/01/09 22:37:24 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 0       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
20 0       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
25 0       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
30 0       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
38 0       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
43 0       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
48 0       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
56 0       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
61 0       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 #
70 0       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
92 0       long            0xfa33c08e      SunPC 4.0 Hard Disk
93 0       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 #
99 0       string          snoop           Snoop capture file
100 >8      belong          >0              - version %ld
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 %ld)
112 >12     belong          11              (type %ld)
113 >12     belong          12              (type %ld)
114 >12     belong          13              (type %ld)
115 >12     belong          14              (type %ld)
116 >12     belong          15              (type %ld)
117 >12     belong          16              (Fibre Channel)
118 >12     belong          17              (ATM)
119 >12     belong          18              (ATM Classical IP)
120 >12     belong          19              (type %ld)
121 >12     belong          20              (type %ld)
122 >12     belong          21              (type %ld)
123 >12     belong          22              (type %ld)
124 >12     belong          23              (type %ld)
125 >12     belong          24              (type %ld)
126 >12     belong          25              (type %ld)
127 >12     belong          26              (IP over Infiniband)
128 >12     belong          >26             (type %ld)
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
136 0       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.
141 0       string CRfs     COBALT boot rom data (Flat boot rom or file system)