xref: /freebsd/contrib/file/magic/Magdir/mips (revision 7af41682a96bf7058b82665c33bb9b1bfa079c17)
1
2#------------------------------------------------------------------------------
3# $File: mips,v 1.16 2026/04/19 20:17:41 christos Exp $
4# mips:  file(1) magic for MIPS ECOFF and Ucode, as used in SGI IRIX
5# and DEC Ultrix
6#
70	name			display-mips-ecoff
8>20	leshort	0407		(impure)
9>20	leshort	0410		(swapped)
10>20	leshort	0413		(paged)
11>8	lelong	!0		not stripped
12>8	lelong	0		stripped
13>22	byte	x		- version %d
14>23	byte	x		\b.%d
15#
16# MIPS 1
17#
180	beshort	0x0160
19>16	beshort	56		MIPSEB ECOFF executable
20>>0	use			\^display-mips-ecoff
21>16	leshort	0
22>>0	use			display-coff
23#
240	beshort	0x0162
25>16	beshort	56		MIPSEL-BE ECOFF executable
26>>0	use			\^display-mips-ecoff
27#
280	leshort	0x0160
29>16	leshort	56		MIPSEB-LE ECOFF executable
30>>0	use			display-mips-ecoff
31>16	leshort	0
32>>0	use			display-coff
33#
340	leshort	0x0162
35>16	leshort	56		MIPSEL ECOFF executable
36>>0	use			display-mips-ecoff
37#
38# MIPS 2 additions
39#
400	beshort	0x0163
41>16	beshort	56		MIPSEB MIPS-II ECOFF executable
42>>0	use			\^display-mips-ecoff
43#
440	beshort	0x0166
45>16	beshort	56		MIPSEL-BE MIPS-II ECOFF executable
46>>0	use			\^display-mips-ecoff
47>16	leshort	0
48>>0	use			display-coff
49#
500	leshort	0x0163
51>16	leshort	56		MIPSEB-LE MIPS-II ECOFF executable
52>>0	use			display-mips-ecoff
53#
540	leshort	0x0166
55>16	leshort	56		MIPSEL MIPS-II ECOFF executable
56>>0	use			display-mips-ecoff
57>16	leshort	0
58>>0	use			display-coff
59#
60# MIPS 3 additions
61#
620	beshort	0x0140
63>16	beshort	56		MIPSEB MIPS-III ECOFF executable
64>>0	use			\^display-mips-ecoff
65#
660	beshort	0x0142
67>16	beshort	56		MIPSEL-BE MIPS-III ECOFF executable
68>>0	use			\^display-mips-ecoff
69#
700	leshort	0x0140
71>16	leshort	56		MIPSEB-LE MIPS-III ECOFF executable
72>>0	use			display-mips-ecoff
73#
740	leshort	0x0142
75>16	leshort	56		MIPSEL MIPS-III ECOFF executable
76>>0	use			display-mips-ecoff
77#
78# MIPS Ucode additions
79#
800	beshort	0x180		MIPSEB Ucode
810	beshort	0x182		MIPSEL-BE Ucode
82#
83# MIPS COFF object file (have zero length optional header)
84#
850	leshort			0x0168
86>16	leshort			0
87>>0	use			display-coff
88# can be created by LINK.EXE /MACHINE:MIPSR10 /ROM
89>16	leshort			!0
90>>18	leshort			&0x0002
91>>>20	leshort			0x0107
92>>>>0	use			display-coff
930	leshort	0x0169
94>16	leshort	0
95>>0	use			display-coff
960	leshort	0x0266
97>16	leshort	0
98>>0	use			display-coff
990	leshort	0x0366
100>16	leshort	0
101>>0	use			display-coff
1020	leshort	0x0466
103>16	leshort	0
104>>0	use			display-coff
105