sun 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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'