sun 4.0 KB

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