1 2#------------------------------------------------------------------------------ 3# $File: mips,v 1.15 2024/09/01 13:49:15 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# 58# MIPS 3 additions 59# 600 beshort 0x0140 61>16 beshort 56 MIPSEB MIPS-III ECOFF executable 62>>0 use \^display-mips-ecoff 63# 640 beshort 0x0142 65>16 beshort 56 MIPSEL-BE MIPS-III ECOFF executable 66>>0 use \^display-mips-ecoff 67# 680 leshort 0x0140 69>16 leshort 56 MIPSEB-LE MIPS-III ECOFF executable 70>>0 use display-mips-ecoff 71# 720 leshort 0x0142 73>16 leshort 56 MIPSEL MIPS-III ECOFF executable 74>>0 use display-mips-ecoff 75# 76# MIPS Ucode additions 77# 780 beshort 0x180 MIPSEB Ucode 790 beshort 0x182 MIPSEL-BE Ucode 80# 81# MIPS COFF object file (have zero length optional header) 82# 830 leshort 0x0168 84>16 leshort 0 85>>0 use display-coff 86# can be created by LINK.EXE /MACHINE:MIPSR10 /ROM 87>16 leshort !0 88>>18 leshort &0x0002 89>>>20 leshort 0x0107 90>>>>0 use display-coff 910 leshort 0x0169 92>16 leshort 0 93>>0 use display-coff 940 leshort 0x0266 95>16 leshort 0 96>>0 use display-coff 970 leshort 0x0366 98>16 leshort 0 99>>0 use display-coff 1000 leshort 0x0466 101>16 leshort 0 102>>0 use display-coff 103