#	@(#)magic	13.1 (RC Computer) 91/02/02
#
# $Header: magic.txt,v 1.6 86/11/29 19:23:37 dce Exp $
#
#	With additions by D A Gwyn <gwyn@brl.arpa>
#	Plus MIPS additions
#
#		file cmd's magic file
#
#
#	Basically, the fields of this file are as follows:
#	byte offset, value type, optional operator (= by default), value
#	to match (numeric or string), and string to be printed.  Numeric
#	values may be decimal, octal, or hex.  Also note that the last
#	string may have 1 printf format spec.
#	The '>' in occasional column 1s is magic: it forces file to
#	continue scanning and matching additional lines.  The first line
#	afterwards not so marked terminates the search.
#
0	short		070707		cpio archive
0	string		070707		ASCII cpio archive
0	long		0177555		very old archive
0	short		0177545		old archive
0	long		0100554		apl workspace
0	short		017037		packed data
0	short		017436		packed data
0	string		<ar>		old portable archive
0	long		0x1010101	MMDF mailbox
0	short		0407		executable
>8	short		>0		not stripped
>15	byte		>0		- version %ld
0	short		0401		unix-rt ldp
0	short		0405		old overlay
0	short		0410		pure executable
>8	short		>0		not stripped
>15	byte		>0		- version %ld
0	short		0411		separate I&D
>8	short		>0		not stripped
>15	byte		>0		- version %ld
0	short		0413		demand-paged executable
>8	short		>0		not stripped
>15	byte		>0		- version %ld
0	short		0430		obsolete text-overlay pure
>8	short		>0		not stripped
0	short		0431		obsolete text-overlay separate
>8	short		>0		not stripped
0	short		0450		text-overlay pure
>8	short		>0		not stripped
0	short		0451		text-overlay separate
>8	short		>0		not stripped
0	short		0437		pdp11 kernel overlay
0	short		0570		executable
>12	long		>0		not stripped
>22	short		>0		- version %ld
0	short		0575		pure executable
>12	long		>0		not stripped
>22	short		>0		- version %ld
0	short		0502		basic-16 executable
>12	long		>0		not stripped
0	short		0503		basic-16 executable (TV)
>12	long		>0		not stripped
0	short		0510		x86 executable
>12	long		>0		not stripped
0	short		0511		x86 executable (TV)
>12	long		>0		not stripped
0	short		0520		mc68000 executable
>12	long		>0		not stripped
0	short		0521		mc68000 executable (TV)
>12	long		>0		not stripped
0	short		0550		3b20 executable
>12	long		>0		not stripped
0	short		0551		3b20 executable (TV)
>12	long		>0		not stripped
0	short		0560		3b5|DMD executable
>12	long		>0		not stripped
0	short		0561		3b5|DMD executable (TV)
>12	long		>0		not stripped
#
# MIPS binary information - Note that version number printing is an
# extreme hack.
#
0	short		0x0160		mipseb
>20	short		0407		executable
>20	short		0410		pure
>20	short		0413		demand paged
>8	long		!0		not stripped
>8	long		0		stripped
>22	byte		x		- version %ld.
>23	byte		x		%ld
0	short		0x0162		mipsel
>20	short		0407		executable
>20	short		0410		pure
>20	short		0413		demand paged
>8	long		!0		not stripped
>8	long		0		stripped
>23	byte		x		- version %ld.
>22	byte		x		%ld
0	short		0x6001		swapped mipseb
>20	short		03401		executable
>20	short		04001		pure
>20	short		05401		demand paged
>8	long		!0		not stripped
>8	long		0		stripped
>22	byte		x		- version %ld.
>23	byte		x		%ld
0	short		0x6201		swapped mipsel
>20	short		03401		executable
>20	short		04001		pure
>20	short		05401		demand paged
>8	long		!0		not stripped
>8	long		0		stripped
>22	byte		x		- version %ld.
>23	byte		x		%ld
0	short		0x180		mipseb ucode
0	short		0x182		mipsel ucode
0	long		0x011857	context file
#
# Archives - This handles archive subtypes
#
0	string		!<arch>\n__.SYMDEF	BSD archive random library
0	string		!<arch>\n__________E	MIPS archive
>20	string		U			with mipsucode members
>21	string		L			with mipsel members
>21	string		B			with mipseb members
>19	string		L			and a EL hash table
>19	string		B			and a EB hash table
>22	string		X			-- out of date
0	string		!<arch>		archive
#
# Compressed data
#
0	short		017635		compressed data
>2	byte		0214		- with 12 bits
>2	byte		0215		- with 13 bits
>2	byte		0216		- with 14 bits
>2	byte		0217		- with 15 bits
>2	byte		0220		- with 16 bits
