xref: /dflybsd-src/contrib/file/magic/Magdir/motorola (revision 7b80531f545c7d3c51c1660130c71d01f6bccbe0)
1327e51cbSPeter Avalos
2327e51cbSPeter Avalos#------------------------------------------------------------------------------
3*614728caSSascha Wildner# $File: motorola,v 1.12 2021/04/26 15:56:00 christos Exp $
4327e51cbSPeter Avalos# motorola:  file(1) magic for Motorola 68K and 88K binaries
5327e51cbSPeter Avalos#
6327e51cbSPeter Avalos# 68K
7327e51cbSPeter Avalos#
8327e51cbSPeter Avalos0	beshort		0520		mc68k COFF
9327e51cbSPeter Avalos>18	beshort		^00000020	object
10327e51cbSPeter Avalos>18	beshort		&00000020	executable
11327e51cbSPeter Avalos>12	belong		>0		not stripped
12327e51cbSPeter Avalos>168	string		.lowmem		Apple toolbox
13327e51cbSPeter Avalos>20	beshort		0407		(impure)
14327e51cbSPeter Avalos>20	beshort		0410		(pure)
15327e51cbSPeter Avalos>20	beshort		0413		(demand paged)
16327e51cbSPeter Avalos>20	beshort		0421		(standalone)
17327e51cbSPeter Avalos0	beshort		0521		mc68k executable (shared)
18327e51cbSPeter Avalos>12	belong		>0		not stripped
19327e51cbSPeter Avalos0	beshort		0522		mc68k executable (shared demand paged)
20327e51cbSPeter Avalos>12	belong		>0		not stripped
21327e51cbSPeter Avalos#
22327e51cbSPeter Avalos# Motorola/UniSoft 68K Binary Compatibility Standard (BCS)
23327e51cbSPeter Avalos#
24327e51cbSPeter Avalos0	beshort		0554		68K BCS executable
25327e51cbSPeter Avalos#
26327e51cbSPeter Avalos# 88K
27327e51cbSPeter Avalos#
28327e51cbSPeter Avalos# Motorola/88Open BCS
29327e51cbSPeter Avalos#
30327e51cbSPeter Avalos0	beshort		0555		88K BCS executable
31327e51cbSPeter Avalos#
32327e51cbSPeter Avalos# Motorola S-Records, from Gerd Truschinski <gt@freebsd.first.gmd.de>
33327e51cbSPeter Avalos0   string      S0          Motorola S-Record; binary data in text format
34327e51cbSPeter Avalos
35327e51cbSPeter Avalos# ATARI ST relocatable PRG
36327e51cbSPeter Avalos#
37327e51cbSPeter Avalos# from Oskar Schirmer <schirmer@scara.com> Feb 3, 2001
38327e51cbSPeter Avalos# (according to Roland Waldi, Oct 21, 1987)
39327e51cbSPeter Avalos# besides the magic 0x601a, the text segment size is checked to be
40327e51cbSPeter Avalos# not larger than 1 MB (which is a lot on ST).
41327e51cbSPeter Avalos# The additional 0x601b distinction I took from Doug Lee's magic.
42327e51cbSPeter Avalos0	belong&0xFFFFFFF0	0x601A0000	Atari ST M68K contiguous executable
4382c5fa3eSPeter Avalos>2	belong			x		(txt=%d,
4482c5fa3eSPeter Avalos>6	belong			x		dat=%d,
4582c5fa3eSPeter Avalos>10	belong			x		bss=%d,
4682c5fa3eSPeter Avalos>14	belong			x		sym=%d)
47327e51cbSPeter Avalos0	belong&0xFFFFFFF0	0x601B0000	Atari ST M68K non-contig executable
4882c5fa3eSPeter Avalos>2	belong			x		(txt=%d,
4982c5fa3eSPeter Avalos>6	belong			x		dat=%d,
5082c5fa3eSPeter Avalos>10	belong			x		bss=%d,
5182c5fa3eSPeter Avalos>14	belong			x		sym=%d)
52327e51cbSPeter Avalos
53327e51cbSPeter Avalos# Atari ST/TT... program format (sent by Wolfram Kleff <kleff@cs.uni-bonn.de>)
54327e51cbSPeter Avalos0       beshort         0x601A          Atari 68xxx executable,
5582c5fa3eSPeter Avalos>2      belong          x               text len %u,
5682c5fa3eSPeter Avalos>6      belong          x               data len %u,
5782c5fa3eSPeter Avalos>10     belong          x               BSS len %u,
5882c5fa3eSPeter Avalos>14     belong          x               symboltab len %u,
59327e51cbSPeter Avalos>18     belong          0
60327e51cbSPeter Avalos>22     belong          &0x01           fastload flag,
61327e51cbSPeter Avalos>22     belong          &0x02           may be loaded to alternate RAM,
62327e51cbSPeter Avalos>22     belong          &0x04           malloc may be from alternate RAM,
63*614728caSSascha Wildner>22     belong          x               flags: %#X,
64327e51cbSPeter Avalos>26     beshort         0               no relocation tab
65327e51cbSPeter Avalos>26     beshort         !0              + relocation tab
66327e51cbSPeter Avalos>30     string          SFX             [Self-Extracting LZH SFX archive]
67327e51cbSPeter Avalos>38     string          SFX             [Self-Extracting LZH SFX archive]
68327e51cbSPeter Avalos>44     string          ZIP!            [Self-Extracting ZIP SFX archive]
69327e51cbSPeter Avalos
70327e51cbSPeter Avalos0       beshort         0x0064          Atari 68xxx CPX file
7182c5fa3eSPeter Avalos>8      beshort         x               (version %04x)
72