xref: /freebsd/contrib/file/magic/Magdir/motorola (revision b71805e991fb955005640bdec81618e37d3af47c)
1
2#------------------------------------------------------------------------------
3# $File: motorola,v 1.13 2024/02/11 21:25:17 christos Exp $
4# motorola:  file(1) magic for Motorola 68K and 88K binaries
5#
6# 68K
7#
80	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)
170	beshort		0521		mc68k executable (shared)
18>12	belong		>0		not stripped
190	beshort		0522		mc68k executable (shared demand paged)
20>12	belong		>0		not stripped
21
22# Motorola 68000 COFF object file
230	leshort		0x0268
24>16	leshort		0
25>>0	use		display-coff
26
27#
28# Motorola/UniSoft 68K Binary Compatibility Standard (BCS)
29#
300	beshort		0554		68K BCS executable
31#
32# 88K
33#
34# Motorola/88Open BCS
35#
360	beshort		0555		88K BCS executable
37#
38# Motorola S-Records, from Gerd Truschinski <gt@freebsd.first.gmd.de>
390   string      S0          Motorola S-Record; binary data in text format
40
41# ATARI ST relocatable PRG
42#
43# from Oskar Schirmer <schirmer@scara.com> Feb 3, 2001
44# (according to Roland Waldi, Oct 21, 1987)
45# besides the magic 0x601a, the text segment size is checked to be
46# not larger than 1 MB (which is a lot on ST).
47# The additional 0x601b distinction I took from Doug Lee's magic.
480	belong&0xFFFFFFF0	0x601A0000	Atari ST M68K contiguous executable
49>2	belong			x		(txt=%d,
50>6	belong			x		dat=%d,
51>10	belong			x		bss=%d,
52>14	belong			x		sym=%d)
530	belong&0xFFFFFFF0	0x601B0000	Atari ST M68K non-contig executable
54>2	belong			x		(txt=%d,
55>6	belong			x		dat=%d,
56>10	belong			x		bss=%d,
57>14	belong			x		sym=%d)
58
59# Atari ST/TT... program format (sent by Wolfram Kleff <kleff@cs.uni-bonn.de>)
600       beshort         0x601A          Atari 68xxx executable,
61>2      belong          x               text len %u,
62>6      belong          x               data len %u,
63>10     belong          x               BSS len %u,
64>14     belong          x               symboltab len %u,
65>18     belong          0
66>22     belong          &0x01           fastload flag,
67>22     belong          &0x02           may be loaded to alternate RAM,
68>22     belong          &0x04           malloc may be from alternate RAM,
69>22     belong          x               flags: %#X,
70>26     beshort         0               no relocation tab
71>26     beshort         !0              + relocation tab
72>30     string          SFX             [Self-Extracting LZH SFX archive]
73>38     string          SFX             [Self-Extracting LZH SFX archive]
74>44     string          ZIP!            [Self-Extracting ZIP SFX archive]
75
760       beshort         0x0064          Atari 68xxx CPX file
77>8      beshort         x               (version %04x)
78