sun 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. #------------------------------------------------------------------------------
  2. # sun: file(1) magic for Sun machines
  3. #
  4. # Values for big-endian Sun (MC680x0, SPARC) binaries on pre-5.x
  5. # releases. (5.x uses ELF.)
  6. #
  7. 0 belong&077777777 0600413 sparc demand paged
  8. >0 byte &0x80
  9. >>20 belong <4096 shared library
  10. >>20 belong =4096 dynamically linked executable
  11. >>20 belong >4096 dynamically linked executable
  12. >0 byte ^0x80 executable
  13. >16 belong >0 not stripped
  14. 0 belong&077777777 0600410 sparc pure
  15. >0 byte &0x80 dynamically linked executable
  16. >0 byte ^0x80 executable
  17. >16 belong >0 not stripped
  18. 0 belong&077777777 0600407 sparc
  19. >0 byte &0x80 dynamically linked executable
  20. >0 byte ^0x80 executable
  21. >16 belong >0 not stripped
  22. 0 belong&077777777 0400413 mc68020 demand paged
  23. >0 byte &0x80
  24. >>20 belong <4096 shared library
  25. >>20 belong =4096 dynamically linked executable
  26. >>20 belong >4096 dynamically linked executable
  27. >0 byte ^0x80 executable
  28. >16 belong >0 not stripped
  29. 0 belong&077777777 0400410 mc68020 pure
  30. >0 byte &0x80 dynamically linked executable
  31. >0 byte ^0x80 executable
  32. >16 belong >0 not stripped
  33. 0 belong&077777777 0400407 mc68020
  34. >0 byte &0x80 dynamically linked executable
  35. >0 byte ^0x80 executable
  36. >16 belong >0 not stripped
  37. 0 belong&077777777 0200413 mc68010 demand paged
  38. >0 byte &0x80
  39. >>20 belong <4096 shared library
  40. >>20 belong =4096 dynamically linked executable
  41. >>20 belong >4096 dynamically linked executable
  42. >0 byte ^0x80 executable
  43. >16 belong >0 not stripped
  44. 0 belong&077777777 0200410 mc68010 pure
  45. >0 byte &0x80 dynamically linked executable
  46. >0 byte ^0x80 executable
  47. >16 belong >0 not stripped
  48. 0 belong&077777777 0200407 mc68010
  49. >0 byte &0x80 dynamically linked executable
  50. >0 byte ^0x80 executable
  51. >16 belong >0 not stripped
  52. # reworked these to avoid anything beginning with zero becoming "old sun-2"
  53. 0 belong 0407 old sun-2 executable
  54. >16 belong >0 not stripped
  55. 0 belong 0410 old sun-2 pure executable
  56. >16 belong >0 not stripped
  57. 0 belong 0413 old sun-2 demand paged executable
  58. >16 belong >0 not stripped
  59. #
  60. # Core files. "SPARC 4.x BCP" means "core file from a SunOS 4.x SPARC
  61. # binary executed in compatibility mode under SunOS 5.x".
  62. #
  63. 0 belong 0x080456 SunOS core file
  64. >4 belong 432 (SPARC)
  65. >>132 string >\0 from '%s'
  66. >>116 belong =3 (quit)
  67. >>116 belong =4 (illegal instruction)
  68. >>116 belong =5 (trace trap)
  69. >>116 belong =6 (abort)
  70. >>116 belong =7 (emulator trap)
  71. >>116 belong =8 (arithmetic exception)
  72. >>116 belong =9 (kill)
  73. >>116 belong =10 (bus error)
  74. >>116 belong =11 (segmentation violation)
  75. >>116 belong =12 (bad argument to system call)
  76. >>116 belong =29 (resource lost)
  77. >>120 belong x (T=%dK,
  78. >>124 belong x D=%dK,
  79. >>128 belong x S=%dK)
  80. >4 belong 826 (68K)
  81. >>128 string >\0 from '%s'
  82. >4 belong 456 (SPARC 4.x BCP)
  83. >>152 string >\0 from '%s'
  84. # Sun SunPC
  85. 0 long 0xfa33c08e SunPC 4.0 Hard Disk
  86. 0 string #SUNPC_CONFIG SunPC 4.0 Properties Values
  87. # Sun snoop (see RFC 1761, which describes the capture file format).
  88. #
  89. 0 string snoop Snoop capture file
  90. >8 belong >0 - version %ld
  91. >12 belong 0 (IEEE 802.3)
  92. >12 belong 1 (IEEE 802.4)
  93. >12 belong 2 (IEEE 802.5)
  94. >12 belong 3 (IEEE 802.6)
  95. >12 belong 4 (Ethernet)
  96. >12 belong 5 (HDLC)
  97. >12 belong 6 (Character synchronous)
  98. >12 belong 7 (IBM channel-to-channel adapter)
  99. >12 belong 8 (FDDI)
  100. >12 belong 9 (Unknown)
  101. # Microsoft ICM color profile
  102. 36 string acspMSFT Microsoft ICM Color Profile
  103. # Sun KCMS
  104. 36 string acsp Kodak Color Management System, ICC Profile
  105. #---------------------------------------------------------------------------
  106. # The following entries have been tested by Duncan Laurie <duncan@sun.com> (a
  107. # lead Sun/Cobalt developer) who agrees that they are good and worthy of
  108. # inclusion.
  109. # Boot ROM images for Sun/Cobalt Linux server appliances
  110. 0 string Cobalt\ Networks\ Inc.\nFirmware\ v Paged COBALT boot rom
  111. >38 string x V%.4s
  112. # New format for Sun/Cobalt boot ROMs is annoying, it stores the version code
  113. # at the very end where file(1) can't get it.
  114. 0 string CRfs COBALT boot rom data (Flat boot rom or file system)