file_cmds-60.tar.gz
[apple/file_cmds.git] / file / magdir / sun
1
2 #------------------------------------------------------------------------------
3 # sun:  file(1) magic for Sun machines
4 #
5 # Values for big-endian Sun (MC680x0, SPARC) binaries on pre-5.x
6 # releases.  (5.x uses ELF.)
7 #
8 0       belong&077777777        0600413         sparc demand paged
9 >0      byte            &0x80
10 >>20    belong          <4096           shared library
11 >>20    belong          =4096           dynamically linked executable
12 >>20    belong          >4096           dynamically linked executable
13 >0      byte            ^0x80           executable
14 >16     belong          >0              not stripped
15 0       belong&077777777        0600410         sparc pure
16 >0      byte            &0x80           dynamically linked executable
17 >0      byte            ^0x80           executable
18 >16     belong          >0              not stripped
19 0       belong&077777777        0600407         sparc
20 >0      byte            &0x80           dynamically linked executable
21 >0      byte            ^0x80           executable
22 >16     belong          >0              not stripped
23
24 0       belong&077777777        0400413         mc68020 demand paged
25 >0      byte            &0x80
26 >>20    belong          <4096           shared library
27 >>20    belong          =4096           dynamically linked executable
28 >>20    belong          >4096           dynamically linked executable
29 >16     belong          >0              not stripped
30 0       belong&077777777        0400410         mc68020 pure
31 >0      byte            &0x80           dynamically linked executable
32 >0      byte            ^0x80           executable
33 >16     belong          >0              not stripped
34 0       belong&077777777        0400407         mc68020
35 >0      byte            &0x80           dynamically linked executable
36 >0      byte            ^0x80           executable
37 >16     belong          >0              not stripped
38
39 0       belong&077777777        0200413         mc68010 demand paged
40 >0      byte            &0x80
41 >>20    belong          <4096           shared library
42 >>20    belong          =4096           dynamically linked executable
43 >>20    belong          >4096           dynamically linked executable
44 >16     belong          >0              not stripped
45 0       belong&077777777        0200410         mc68010 pure
46 >0      byte            &0x80           dynamically linked executable
47 >0      byte            ^0x80           executable
48 >16     belong          >0              not stripped
49 0       belong&077777777        0200407         mc68010
50 >0      byte            &0x80           dynamically linked executable
51 >0      byte            ^0x80           executable
52 >16     belong          >0              not stripped
53
54 # reworked these to avoid anything beginning with zero becoming "old sun-2"
55 0       belong          0407            old sun-2 executable
56 >16     belong          >0              not stripped
57 0       belong          0410            old sun-2 pure executable
58 >16     belong          >0              not stripped
59 0       belong          0413            old sun-2 demand paged executable
60 >16     belong          >0              not stripped
61
62 #
63 # Core files.  "SPARC 4.x BCP" means "core file from a SunOS 4.x SPARC
64 # binary executed in compatibility mode under SunOS 5.x".
65 #
66 0       belong          0x080456        SunOS core file
67 >4      belong          432             (SPARC)
68 >>132   string          >\0             from '%s'
69 >>116   belong          =3              (quit)
70 >>116   belong          =4              (illegal instruction)
71 >>116   belong          =5              (trace trap)
72 >>116   belong          =6              (abort)
73 >>116   belong          =7              (emulator trap)
74 >>116   belong          =8              (arithmetic exception)
75 >>116   belong          =9              (kill)
76 >>116   belong          =10             (bus error)
77 >>116   belong          =11             (segmentation violation)
78 >>116   belong          =12             (bad argument to system call)
79 >>116   belong          =29             (resource lost)
80 >>120   belong          x               (T=%dK,
81 >>124   belong          x               D=%dK,
82 >>128   belong          x               S=%dK)
83 >4      belong          826             (68K)
84 >>128   string          >\0             from '%s'
85 >4      belong          456             (SPARC 4.x BCP)
86 >>152   string          >\0             from '%s'
87 # Sun SunPC
88 0       long            0xfa33c08e      SunPC 4.0 Hard Disk
89 0       string          #SUNPC_CONFIG   SunPC 4.0 Properties Values
90 # Sun snoop
91 #
92 # XXX - are numbers stored in big-endian format, or in host byte order?
93 # They're the same on SPARC, but not the same on x86.
94 #
95 0       string          snoop           Snoop capture file
96 >8      long            >0              - version %ld
97 >12     long            0               (IEEE 802.3)
98 >12     long            1               (IEEE 802.4)
99 >12     long            2               (IEEE 802.5)
100 >12     long            3               (IEEE 802.6)
101 >12     long            4               (Ethernet)
102 >12     long            5               (HDLC)
103 >12     long            6               (Character synchronous)
104 >12     long            7               (IBM channel-to-channel adapter)
105 >12     long            8               (FDDI)
106 >12     long            9               (Unknown)
107 # Sun KCMS
108 36      string          acsp            Kodak Color Management System, ICC Profile
109
110