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