head	1.7;
access;
symbols;
locks
	bsittler:1.7; strict;
comment	@# @;


1.7
date	2001.08.24.20.01.36;	author bsittler;	state Exp;
branches;
next	1.6;

1.6
date	2001.08.23.19.38.52;	author bsittler;	state Exp;
branches;
next	1.5;

1.5
date	2001.08.23.07.10.02;	author bsittler;	state Exp;
branches;
next	1.4;

1.4
date	2001.07.30.04.55.42;	author bsittler;	state Exp;
branches;
next	1.3;

1.3
date	2000.05.07.05.25.39;	author bsittler;	state Exp;
branches;
next	1.2;

1.2
date	99.03.31.07.10.57;	author bsittler;	state Exp;
branches;
next	1.1;

1.1
date	97.12.06.12.51.19;	author bsittler;	state Exp;
branches;
next	;


desc
@Magic numbers for SMOKE-16 object files and executables.
@


1.7
log
@improved address formatting for the entry point
@
text
@# Magic for SMOKE-16
#
#  smoke16/magic - Magic numbers for SMOKE-16 executables and object files.
#  $Revision: 1.6 $
#

# All of the objects and executables here assume the Mirrors system
# call interface. For the moment this is implicit, since Mirrors is
# the only SMOKE-16 system call interface.

# Magic numbers for SMOKE-16 v0 a.out files (18-byte exec header)
# SMOKE-16 "v0" OMAGIC, NMAGIC and JMAGIC executables are loaded at 0x0000 by default

0	belong&017777777777	036000407	SMOKE-16 "v0" object or impure executable (OMAGIC)
>0	byte&0x80	0x80	- dynamically linked
>10	ubeshort	>0	- not stripped
>14	beshort		>0	- impure text
>16	beshort		>0	- impure data

0	belong&017777777777	036000410	SMOKE-16 "v0" pure executable (NMAGIC)
>0	byte&0x80	0x80	- dynamically linked
>10	ubeshort	>0	- not stripped
>14	beshort		>0	- impure text
>16	beshort		>0	- impure data
>12	ubeshort	x	- entry: %#4.4hx

0	belong&017777777777	036000411	SMOKE-16 "v0" split I&D executable (JMAGIC)
>0	byte&0x80	0x80	- dynamically linked
>10	ubeshort	>0	- not stripped
>14	beshort		>0	- impure text
>16	beshort		>0	- impure data
>12	ubeshort	x	- entry: %#4.4hx

0	belong&017777777777	036000440	SMOKE-16 "v0" object archive (LMAGIC)
>0	byte&0x80	0x80	- dynamically linked
>10     ubeshort        0       - no symbol table

# Magic numbers for SMOKE-16 v1 a.out files (22-byte exec header)
# SMOKE-16 v1 OMAGIC, NMAGIC and JMAGIC executables are loaded at 0x0400 by default

0	belong&017777777777	0136000407	SMOKE-16 v1 object or impure executable (OMAGIC)
>0	byte&0x80	0x80	- dynamically linked
>14	ubeshort	>0	- not stripped
>18	beshort		>0	- impure text
>20	beshort		>0	- impure data
>16	ubeshort	x	- entry: %#4.4hx

0	belong&017777777777	0136000410	SMOKE-16 v1 pure executable (NMAGIC)
>0	byte&0x80	0x80	- dynamically linked
>14	ubeshort	>0	- not stripped
>18	beshort		>0	- impure text
>20	beshort		>0	- impure data
>16	ubeshort	x	- entry: %#4.4hx

0	belong&017777777777	0136000411	SMOKE-16 v1 split I&D executable (JMAGIC)
>0	byte&0x80	0x80	- dynamically linked
>14	ubeshort	>0	- not stripped
>18	beshort		>0	- impure text
>20	beshort		>0	- impure data
>16	ubeshort	x	- entry: %#4.4hx

0	belong&017777777777	0136000440	SMOKE-16 v1 object archive (LMAGIC)
>0	byte&0x80	0x80	- dynamically linked
>14     ubeshort        0       - no symbol table
@


1.6
log
@Added a note about the implicit Mirrors interface.
Added notes about default load addresses.
@
text
@d4 1
a4 1
#  $Revision: 1.5 $
d25 1
a25 1
>12	ubeshort	x	- entry: %0.4X
d32 1
a32 1
>12	ubeshort	x	- entry: %0.4X
d46 1
a46 1
>16	ubeshort	x	- entry: %0.4X
d53 1
a53 1
>16	ubeshort	x	- entry: %0.4X
d60 1
a60 1
>16	ubeshort	x	- entry: %0.4X
@


1.5
log
@Make the magic file magical.
@
text
@d4 1
a4 1
#  $Revision: 1.4 $
d7 4
d12 2
d39 2
@


1.4
log
@fixed the anachronistic "v0" entries (JMAGIC and LMAGIC) to reflect the 18-byte exec header
@
text
@d1 1
d4 1
a4 1
#  $Revision: 1.3 $
@


1.3
log
@Added entries for split I&D (JMAGIC)
@
text
@d3 1
a3 1
#  $Revision: 1.2 $
d22 4
a25 4
>14	ubeshort	>0	- not stripped
>18	beshort		>0	- impure text
>20	beshort		>0	- impure data
>16	ubeshort	x	- entry: %0.4X
d29 1
a29 1
>14     ubeshort        0       - no symbol table
@


1.2
log
@Removed irrelevant copyright and warranty information.
Made the magic number check also check the toolversion field,
and broke the file into two pieces, corresponding to "v0" and v1
files.
@
text
@d3 1
a3 1
#  $Revision: 1.1 $
d7 1
a7 1
0	belong&017777777777	036000407	SMOKE-16 v0 object file
d13 1
a13 1
0	belong&017777777777	036000410	SMOKE-16 v0 pure executable (NMAGIC)
d20 11
d32 1
a32 1
0	belong&017777777777	0136000407	SMOKE-16 v1 object file
d37 1
d40 7
@


1.1
log
@Initial revision
@
text
@d3 1
a3 16
#  $Revision$
#  Copyright 1997, Benjamin Sittler
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
d6 4
a9 4
# Magic numbers for SMOKE-16 a.out files
0       belong&077777777        036000407       SMOKE-16 object file
>0      byte&0x80       0x80    - dynamically linked
>10     ubeshort        >0      - not stripped
d13 3
a15 3
0       belong&077777777        036000410       SMOKE-16 pure executable (NMAGIC)
>0      byte&0x80       0x80    - dynamically linked
>10     ubeshort        >0      - not stripped
d20 17
@
