mips 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. #------------------------------------------------------------------------------
  2. # $File: mips,v 1.5 2009/09/19 16:28:10 christos Exp $
  3. # mips: file(1) magic for Silicon Graphics (MIPS, IRIS, IRIX, etc.)
  4. # Dec Ultrix (MIPS)
  5. # all of SGI's *current* machines and OSes run in big-endian mode on the
  6. # MIPS machines, as far as I know.
  7. #
  8. # XXX - what is the blank "-" line?
  9. #
  10. # kbd file definitions
  11. 0 string kbd!map kbd map file
  12. >8 byte >0 Ver %d:
  13. >10 short >0 with %d table(s)
  14. 0 belong 0407 old SGI 68020 executable
  15. 0 belong 0410 old SGI 68020 pure executable
  16. 0 beshort 0x8765 disk quotas file
  17. 0 beshort 0x0506 IRIS Showcase file
  18. >2 byte 0x49 -
  19. >3 byte x - version %ld
  20. 0 beshort 0x0226 IRIS Showcase template
  21. >2 byte 0x63 -
  22. >3 byte x - version %ld
  23. 0 belong 0x5343464d IRIS Showcase file
  24. >4 byte x - version %ld
  25. 0 belong 0x5443464d IRIS Showcase template
  26. >4 byte x - version %ld
  27. 0 belong 0xdeadbabe IRIX Parallel Arena
  28. >8 belong >0 - version %ld
  29. #
  30. 0 beshort 0x0160 MIPSEB ECOFF executable
  31. >20 beshort 0407 (impure)
  32. >20 beshort 0410 (swapped)
  33. >20 beshort 0413 (paged)
  34. >8 belong >0 not stripped
  35. >8 belong 0 stripped
  36. >22 byte x - version %ld
  37. >23 byte x .%ld
  38. #
  39. 0 beshort 0x0162 MIPSEL-BE ECOFF executable
  40. >20 beshort 0407 (impure)
  41. >20 beshort 0410 (swapped)
  42. >20 beshort 0413 (paged)
  43. >8 belong >0 not stripped
  44. >8 belong 0 stripped
  45. >23 byte x - version %d
  46. >22 byte x .%ld
  47. #
  48. 0 beshort 0x6001 MIPSEB-LE ECOFF executable
  49. >20 beshort 03401 (impure)
  50. >20 beshort 04001 (swapped)
  51. >20 beshort 05401 (paged)
  52. >8 belong >0 not stripped
  53. >8 belong 0 stripped
  54. >23 byte x - version %d
  55. >22 byte x .%ld
  56. #
  57. 0 beshort 0x6201 MIPSEL ECOFF executable
  58. >20 beshort 03401 (impure)
  59. >20 beshort 04001 (swapped)
  60. >20 beshort 05401 (paged)
  61. >8 belong >0 not stripped
  62. >8 belong 0 stripped
  63. >23 byte x - version %ld
  64. >22 byte x .%ld
  65. #
  66. # MIPS 2 additions
  67. #
  68. 0 beshort 0x0163 MIPSEB MIPS-II ECOFF executable
  69. >20 beshort 0407 (impure)
  70. >20 beshort 0410 (swapped)
  71. >20 beshort 0413 (paged)
  72. >8 belong >0 not stripped
  73. >8 belong 0 stripped
  74. >22 byte x - version %ld
  75. >23 byte x .%ld
  76. #
  77. 0 beshort 0x0166 MIPSEL-BE MIPS-II ECOFF executable
  78. >20 beshort 0407 (impure)
  79. >20 beshort 0410 (swapped)
  80. >20 beshort 0413 (paged)
  81. >8 belong >0 not stripped
  82. >8 belong 0 stripped
  83. >22 byte x - version %ld
  84. >23 byte x .%ld
  85. #
  86. 0 beshort 0x6301 MIPSEB-LE MIPS-II ECOFF executable
  87. >20 beshort 03401 (impure)
  88. >20 beshort 04001 (swapped)
  89. >20 beshort 05401 (paged)
  90. >8 belong >0 not stripped
  91. >8 belong 0 stripped
  92. >23 byte x - version %ld
  93. >22 byte x .%ld
  94. #
  95. 0 beshort 0x6601 MIPSEL MIPS-II ECOFF executable
  96. >20 beshort 03401 (impure)
  97. >20 beshort 04001 (swapped)
  98. >20 beshort 05401 (paged)
  99. >8 belong >0 not stripped
  100. >8 belong 0 stripped
  101. >23 byte x - version %ld
  102. >22 byte x .%ld
  103. #
  104. # MIPS 3 additions
  105. #
  106. 0 beshort 0x0140 MIPSEB MIPS-III ECOFF executable
  107. >20 beshort 0407 (impure)
  108. >20 beshort 0410 (swapped)
  109. >20 beshort 0413 (paged)
  110. >8 belong >0 not stripped
  111. >8 belong 0 stripped
  112. >22 byte x - version %ld
  113. >23 byte x .%ld
  114. #
  115. 0 beshort 0x0142 MIPSEL-BE MIPS-III ECOFF executable
  116. >20 beshort 0407 (impure)
  117. >20 beshort 0410 (swapped)
  118. >20 beshort 0413 (paged)
  119. >8 belong >0 not stripped
  120. >8 belong 0 stripped
  121. >22 byte x - version %ld
  122. >23 byte x .%ld
  123. #
  124. 0 beshort 0x4001 MIPSEB-LE MIPS-III ECOFF executable
  125. >20 beshort 03401 (impure)
  126. >20 beshort 04001 (swapped)
  127. >20 beshort 05401 (paged)
  128. >8 belong >0 not stripped
  129. >8 belong 0 stripped
  130. >23 byte x - version %ld
  131. >22 byte x .%ld
  132. #
  133. 0 beshort 0x4201 MIPSEL MIPS-III ECOFF executable
  134. >20 beshort 03401 (impure)
  135. >20 beshort 04001 (swapped)
  136. >20 beshort 05401 (paged)
  137. >8 belong >0 not stripped
  138. >8 belong 0 stripped
  139. >23 byte x - version %ld
  140. >22 byte x .%ld
  141. #
  142. 0 beshort 0x180 MIPSEB Ucode
  143. 0 beshort 0x182 MIPSEL-BE Ucode
  144. # 32bit core file
  145. 0 belong 0xdeadadb0 IRIX core dump
  146. >4 belong 1 of
  147. >16 string >\0 '%s'
  148. # 64bit core file
  149. 0 belong 0xdeadad40 IRIX 64-bit core dump
  150. >4 belong 1 of
  151. >16 string >\0 '%s'
  152. # N32bit core file
  153. 0 belong 0xbabec0bb IRIX N32 core dump
  154. >4 belong 1 of
  155. >16 string >\0 '%s'
  156. # New style crash dump file
  157. 0 string \x43\x72\x73\x68\x44\x75\x6d\x70 IRIX vmcore dump of
  158. >36 string >\0 '%s'
  159. # Trusted IRIX info
  160. 0 string SGIAUDIT SGI Audit file
  161. >8 byte x - version %d
  162. >9 byte x .%ld
  163. #
  164. 0 string WNGZWZSC Wingz compiled script
  165. 0 string WNGZWZSS Wingz spreadsheet
  166. 0 string WNGZWZHP Wingz help file
  167. #
  168. 0 string #Inventor V IRIS Inventor 1.0 file
  169. 0 string #Inventor V2 Open Inventor 2.0 file
  170. # GLF is OpenGL stream encoding
  171. 0 string glfHeadMagic(); GLF_TEXT
  172. 4 belong 0x7d000000 GLF_BINARY_LSB_FIRST
  173. 4 belong 0x0000007d GLF_BINARY_MSB_FIRST
  174. # GLS is OpenGL stream encoding; GLS is the successor of GLF
  175. 0 string glsBeginGLS( GLS_TEXT
  176. 4 belong 0x10000000 GLS_BINARY_LSB_FIRST
  177. 4 belong 0x00000010 GLS_BINARY_MSB_FIRST