motorola 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #------------------------------------------------------------------------------
  2. # motorola: file(1) magic for Motorola 68K and 88K binaries
  3. #
  4. # Atari ST/TT... program format (sent by Wolfram Kleff <kleff@cs.uni-bonn.de>)
  5. 0 beshort 0x601A Atari 68xxx executable,
  6. >2 belong x text len %lu,
  7. >6 belong x data len %lu,
  8. >10 belong x BSS len %lu,
  9. >14 belong x symboltab len %lu,
  10. >18 belong 0
  11. >22 belong &0x01 fastload flag,
  12. >22 belong &0x02 may be loaded to alternate RAM,
  13. >22 belong &0x04 malloc may be from alternate RAM,
  14. >22 belong x flags: 0x%lX,
  15. >26 beshort 0 no relocation tab
  16. >26 beshort !0 + relocation tab
  17. >30 string SFX [Self-Extracting LZH SFX archive]
  18. >38 string SFX [Self-Extracting LZH SFX archive]
  19. >44 string ZIP! [Self-Extracting ZIP SFX archive]
  20. 0 beshort 0x0064 Atari 68xxx CPX file
  21. >8 beshort x (version %04lx)
  22. # 68K
  23. #
  24. 0 beshort 0520 mc68k COFF
  25. >18 beshort ^00000020 object
  26. >18 beshort &00000020 executable
  27. >12 belong >0 not stripped
  28. >168 string .lowmem Apple toolbox
  29. >20 beshort 0407 (impure)
  30. >20 beshort 0410 (pure)
  31. >20 beshort 0413 (demand paged)
  32. >20 beshort 0421 (standalone)
  33. 0 beshort 0521 mc68k executable (shared)
  34. >12 belong >0 not stripped
  35. 0 beshort 0522 mc68k executable (shared demand paged)
  36. >12 belong >0 not stripped
  37. #
  38. # Motorola/UniSoft 68K Binary Compatibility Standard (BCS)
  39. #
  40. 0 beshort 0554 68K BCS executable
  41. #
  42. # 88K
  43. #
  44. # Motorola/88Open BCS
  45. #
  46. 0 beshort 0555 88K BCS executable
  47. #
  48. # Motorola S-Records, from Gerd Truschinski <gt@freebsd.first.gmd.de>
  49. 0 string S0 Motorola S-Record; binary data in text format
  50. # ATARI ST relocatable PRG
  51. #
  52. # from Oskar Schirmer <schirmer@scara.com> Feb 3, 2001
  53. # (according to Roland Waldi, Oct 21, 1987)
  54. # besides the magic 0x601a, the text segment size is checked to be
  55. # not larger than 1 MB (which is a lot on ST).
  56. # The additional 0x601b distinction I took from Doug Lee's magic.
  57. 0 belong&0xFFFFFFF0 0x601A0000 Atari ST M68K contiguous executable
  58. >2 belong x (txt=%ld,
  59. >6 belong x dat=%ld,
  60. >10 belong x bss=%ld,
  61. >14 belong x sym=%ld)
  62. 0 belong&0xFFFFFFF0 0x601B0000 Atari ST M68K non-contig executable
  63. >2 belong x (txt=%ld,
  64. >6 belong x dat=%ld,
  65. >10 belong x bss=%ld,
  66. >14 belong x sym=%ld)