motorola 2.6 KB

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