1b6cee71dSXin LI 2b6cee71dSXin LI#------------------------------------------------------------------------------ 3*ae316d1dSXin LI# $File: mips,v 1.15 2024/09/01 13:49:15 christos Exp $ 4b6cee71dSXin LI# mips: file(1) magic for MIPS ECOFF and Ucode, as used in SGI IRIX 5b6cee71dSXin LI# and DEC Ultrix 6b6cee71dSXin LI# 7*ae316d1dSXin LI0 name display-mips-ecoff 8*ae316d1dSXin LI>20 leshort 0407 (impure) 9*ae316d1dSXin LI>20 leshort 0410 (swapped) 10*ae316d1dSXin LI>20 leshort 0413 (paged) 11*ae316d1dSXin LI>8 lelong !0 not stripped 12*ae316d1dSXin LI>8 lelong 0 stripped 13b6cee71dSXin LI>22 byte x - version %d 14b6cee71dSXin LI>23 byte x \b.%d 15b6cee71dSXin LI# 16*ae316d1dSXin LI# MIPS 1 17b6cee71dSXin LI# 18*ae316d1dSXin LI0 beshort 0x0160 19*ae316d1dSXin LI>16 beshort 56 MIPSEB ECOFF executable 20*ae316d1dSXin LI>>0 use \^display-mips-ecoff 21*ae316d1dSXin LI>16 leshort 0 22*ae316d1dSXin LI>>0 use display-coff 23b6cee71dSXin LI# 24*ae316d1dSXin LI0 beshort 0x0162 25*ae316d1dSXin LI>16 beshort 56 MIPSEL-BE ECOFF executable 26*ae316d1dSXin LI>>0 use \^display-mips-ecoff 27*ae316d1dSXin LI# 28*ae316d1dSXin LI0 leshort 0x0160 29*ae316d1dSXin LI>16 leshort 56 MIPSEB-LE ECOFF executable 30*ae316d1dSXin LI>>0 use display-mips-ecoff 31*ae316d1dSXin LI>16 leshort 0 32*ae316d1dSXin LI>>0 use display-coff 33*ae316d1dSXin LI# 34*ae316d1dSXin LI0 leshort 0x0162 35*ae316d1dSXin LI>16 leshort 56 MIPSEL ECOFF executable 36*ae316d1dSXin LI>>0 use display-mips-ecoff 37b6cee71dSXin LI# 38b6cee71dSXin LI# MIPS 2 additions 39b6cee71dSXin LI# 40*ae316d1dSXin LI0 beshort 0x0163 41*ae316d1dSXin LI>16 beshort 56 MIPSEB MIPS-II ECOFF executable 42*ae316d1dSXin LI>>0 use \^display-mips-ecoff 43b6cee71dSXin LI# 44*ae316d1dSXin LI0 beshort 0x0166 45*ae316d1dSXin LI>16 beshort 56 MIPSEL-BE MIPS-II ECOFF executable 46*ae316d1dSXin LI>>0 use \^display-mips-ecoff 47*ae316d1dSXin LI>16 leshort 0 48*ae316d1dSXin LI>>0 use display-coff 49b6cee71dSXin LI# 50*ae316d1dSXin LI0 leshort 0x0163 51*ae316d1dSXin LI>16 leshort 56 MIPSEB-LE MIPS-II ECOFF executable 52*ae316d1dSXin LI>>0 use display-mips-ecoff 53b6cee71dSXin LI# 54*ae316d1dSXin LI0 leshort 0x0166 55*ae316d1dSXin LI>16 leshort 56 MIPSEL MIPS-II ECOFF executable 56*ae316d1dSXin LI>>0 use display-mips-ecoff 57b6cee71dSXin LI# 58b6cee71dSXin LI# MIPS 3 additions 59b6cee71dSXin LI# 60*ae316d1dSXin LI0 beshort 0x0140 61*ae316d1dSXin LI>16 beshort 56 MIPSEB MIPS-III ECOFF executable 62*ae316d1dSXin LI>>0 use \^display-mips-ecoff 63b6cee71dSXin LI# 64*ae316d1dSXin LI0 beshort 0x0142 65*ae316d1dSXin LI>16 beshort 56 MIPSEL-BE MIPS-III ECOFF executable 66*ae316d1dSXin LI>>0 use \^display-mips-ecoff 67b6cee71dSXin LI# 68*ae316d1dSXin LI0 leshort 0x0140 69*ae316d1dSXin LI>16 leshort 56 MIPSEB-LE MIPS-III ECOFF executable 70*ae316d1dSXin LI>>0 use display-mips-ecoff 71b6cee71dSXin LI# 72*ae316d1dSXin LI0 leshort 0x0142 73*ae316d1dSXin LI>16 leshort 56 MIPSEL MIPS-III ECOFF executable 74*ae316d1dSXin LI>>0 use display-mips-ecoff 75*ae316d1dSXin LI# 76*ae316d1dSXin LI# MIPS Ucode additions 77b6cee71dSXin LI# 78b6cee71dSXin LI0 beshort 0x180 MIPSEB Ucode 79b6cee71dSXin LI0 beshort 0x182 MIPSEL-BE Ucode 80*ae316d1dSXin LI# 81*ae316d1dSXin LI# MIPS COFF object file (have zero length optional header) 82*ae316d1dSXin LI# 83*ae316d1dSXin LI0 leshort 0x0168 84*ae316d1dSXin LI>16 leshort 0 85*ae316d1dSXin LI>>0 use display-coff 86*ae316d1dSXin LI# can be created by LINK.EXE /MACHINE:MIPSR10 /ROM 87*ae316d1dSXin LI>16 leshort !0 88*ae316d1dSXin LI>>18 leshort &0x0002 89*ae316d1dSXin LI>>>20 leshort 0x0107 90*ae316d1dSXin LI>>>>0 use display-coff 91*ae316d1dSXin LI0 leshort 0x0169 92*ae316d1dSXin LI>16 leshort 0 93*ae316d1dSXin LI>>0 use display-coff 94*ae316d1dSXin LI0 leshort 0x0266 95*ae316d1dSXin LI>16 leshort 0 96*ae316d1dSXin LI>>0 use display-coff 97*ae316d1dSXin LI0 leshort 0x0366 98*ae316d1dSXin LI>16 leshort 0 99*ae316d1dSXin LI>>0 use display-coff 100*ae316d1dSXin LI0 leshort 0x0466 101*ae316d1dSXin LI>16 leshort 0 102*ae316d1dSXin LI>>0 use display-coff 103