aboutsummaryrefslogtreecommitdiff
path: root/contrib/file/magic/Magdir/mips
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/file/magic/Magdir/mips')
-rw-r--r--contrib/file/magic/Magdir/mips180
1 files changed, 81 insertions, 99 deletions
diff --git a/contrib/file/magic/Magdir/mips b/contrib/file/magic/Magdir/mips
index fe83614703a3..0a39a35c5413 100644
--- a/contrib/file/magic/Magdir/mips
+++ b/contrib/file/magic/Magdir/mips
@@ -1,120 +1,102 @@
#------------------------------------------------------------------------------
-# $File: mips,v 1.10 2014/04/30 21:41:02 christos Exp $
+# $File: mips,v 1.15 2024/09/01 13:49:15 christos Exp $
# mips: file(1) magic for MIPS ECOFF and Ucode, as used in SGI IRIX
# and DEC Ultrix
#
-0 beshort 0x0160 MIPSEB ECOFF executable
->20 beshort 0407 (impure)
->20 beshort 0410 (swapped)
->20 beshort 0413 (paged)
->8 belong >0 not stripped
->8 belong 0 stripped
+0 name display-mips-ecoff
+>20 leshort 0407 (impure)
+>20 leshort 0410 (swapped)
+>20 leshort 0413 (paged)
+>8 lelong !0 not stripped
+>8 lelong 0 stripped
>22 byte x - version %d
>23 byte x \b.%d
#
-0 beshort 0x0162 MIPSEL-BE ECOFF executable
->20 beshort 0407 (impure)
->20 beshort 0410 (swapped)
->20 beshort 0413 (paged)
->8 belong >0 not stripped
->8 belong 0 stripped
->23 byte x - version %d
->22 byte x \b.%d
-#
-0 beshort 0x6001 MIPSEB-LE ECOFF executable
->20 beshort 03401 (impure)
->20 beshort 04001 (swapped)
->20 beshort 05401 (paged)
->8 belong >0 not stripped
->8 belong 0 stripped
->23 byte x - version %d
->22 byte x \b.%d
-#
-0 beshort 0x6201 MIPSEL ECOFF executable
->20 beshort 03401 (impure)
->20 beshort 04001 (swapped)
->20 beshort 05401 (paged)
->8 belong >0 not stripped
->8 belong 0 stripped
->23 byte x - version %d
->22 byte x \b.%d
+# MIPS 1
+#
+0 beshort 0x0160
+>16 beshort 56 MIPSEB ECOFF executable
+>>0 use \^display-mips-ecoff
+>16 leshort 0
+>>0 use display-coff
+#
+0 beshort 0x0162
+>16 beshort 56 MIPSEL-BE ECOFF executable
+>>0 use \^display-mips-ecoff
+#
+0 leshort 0x0160
+>16 leshort 56 MIPSEB-LE ECOFF executable
+>>0 use display-mips-ecoff
+>16 leshort 0
+>>0 use display-coff
+#
+0 leshort 0x0162
+>16 leshort 56 MIPSEL ECOFF executable
+>>0 use display-mips-ecoff
#
# MIPS 2 additions
#
-0 beshort 0x0163 MIPSEB MIPS-II ECOFF executable
->20 beshort 0407 (impure)
->20 beshort 0410 (swapped)
->20 beshort 0413 (paged)
->8 belong >0 not stripped
->8 belong 0 stripped
->22 byte x - version %d
->23 byte x \b.%d
+0 beshort 0x0163
+>16 beshort 56 MIPSEB MIPS-II ECOFF executable
+>>0 use \^display-mips-ecoff
#
-0 beshort 0x0166 MIPSEL-BE MIPS-II ECOFF executable
->20 beshort 0407 (impure)
->20 beshort 0410 (swapped)
->20 beshort 0413 (paged)
->8 belong >0 not stripped
->8 belong 0 stripped
->22 byte x - version %d
->23 byte x \b.%d
+0 beshort 0x0166
+>16 beshort 56 MIPSEL-BE MIPS-II ECOFF executable
+>>0 use \^display-mips-ecoff
+>16 leshort 0
+>>0 use display-coff
+#
+0 leshort 0x0163
+>16 leshort 56 MIPSEB-LE MIPS-II ECOFF executable
+>>0 use display-mips-ecoff
#
-0 beshort 0x6301 MIPSEB-LE MIPS-II ECOFF executable
->20 beshort 03401 (impure)
->20 beshort 04001 (swapped)
->20 beshort 05401 (paged)
->8 belong >0 not stripped
->8 belong 0 stripped
->23 byte x - version %d
->22 byte x \b.%d
-#
-0 beshort 0x6601 MIPSEL MIPS-II ECOFF executable
->20 beshort 03401 (impure)
->20 beshort 04001 (swapped)
->20 beshort 05401 (paged)
->8 belong >0 not stripped
->8 belong 0 stripped
->23 byte x - version %d
->22 byte x \b.%d
+0 leshort 0x0166
+>16 leshort 56 MIPSEL MIPS-II ECOFF executable
+>>0 use display-mips-ecoff
#
# MIPS 3 additions
#
-0 beshort 0x0140 MIPSEB MIPS-III ECOFF executable
->20 beshort 0407 (impure)
->20 beshort 0410 (swapped)
->20 beshort 0413 (paged)
->8 belong >0 not stripped
->8 belong 0 stripped
->22 byte x - version %d
->23 byte x \b.%d
+0 beshort 0x0140
+>16 beshort 56 MIPSEB MIPS-III ECOFF executable
+>>0 use \^display-mips-ecoff
#
-0 beshort 0x0142 MIPSEL-BE MIPS-III ECOFF executable
->20 beshort 0407 (impure)
->20 beshort 0410 (swapped)
->20 beshort 0413 (paged)
->8 belong >0 not stripped
->8 belong 0 stripped
->22 byte x - version %d
->23 byte x \b.%d
+0 beshort 0x0142
+>16 beshort 56 MIPSEL-BE MIPS-III ECOFF executable
+>>0 use \^display-mips-ecoff
#
-0 beshort 0x4001 MIPSEB-LE MIPS-III ECOFF executable
->20 beshort 03401 (impure)
->20 beshort 04001 (swapped)
->20 beshort 05401 (paged)
->8 belong >0 not stripped
->8 belong 0 stripped
->23 byte x - version %d
->22 byte x \b.%d
-#
-0 beshort 0x4201 MIPSEL MIPS-III ECOFF executable
->20 beshort 03401 (impure)
->20 beshort 04001 (swapped)
->20 beshort 05401 (paged)
->8 belong >0 not stripped
->8 belong 0 stripped
->23 byte x - version %d
->22 byte x \b.%d
+0 leshort 0x0140
+>16 leshort 56 MIPSEB-LE MIPS-III ECOFF executable
+>>0 use display-mips-ecoff
+#
+0 leshort 0x0142
+>16 leshort 56 MIPSEL MIPS-III ECOFF executable
+>>0 use display-mips-ecoff
+#
+# MIPS Ucode additions
#
0 beshort 0x180 MIPSEB Ucode
0 beshort 0x182 MIPSEL-BE Ucode
+#
+# MIPS COFF object file (have zero length optional header)
+#
+0 leshort 0x0168
+>16 leshort 0
+>>0 use display-coff
+# can be created by LINK.EXE /MACHINE:MIPSR10 /ROM
+>16 leshort !0
+>>18 leshort &0x0002
+>>>20 leshort 0x0107
+>>>>0 use display-coff
+0 leshort 0x0169
+>16 leshort 0
+>>0 use display-coff
+0 leshort 0x0266
+>16 leshort 0
+>>0 use display-coff
+0 leshort 0x0366
+>16 leshort 0
+>>0 use display-coff
+0 leshort 0x0466
+>16 leshort 0
+>>0 use display-coff