[net.unix-wizards] 4 ?magics in the 68000

allbery@ncoast.UUCP (Brandon Allbery) (12/06/85)

Expires:

Quoted from <3044@sun.uucp> ["Re: magic numbers? (teach me, please)"], by guy@sun.uucp (Guy Harris)...
+---------------
| ..................................................... (does anybody know why
| there seem to be four(!) different magic numbers for 68000-family
| executables?).
+---------------

Portability, I guess.  The magic numbers are the original PDP-11 ones.

	AMAGIC	The standard magic number
	NMAGIC	Shared text
	IMAGIC	Separate I&D
	OMAGIC	Overlay

While all 4 are described as possible b.out structures in Xenix {2.3a,3.0} and
Plexus sys3, other files say that only AMAGIC and NMAGIC are supported in the
kernel.  (b.out is what Xenix calls the standard 68000 object file, as opposed
to a.out (PDP-11, Z8000) or x.out (Xenix common format). Plexus calls it bhdr.)
-- 

			Lord Charteris (thurb)

ncoast!allbery@Case.CSNet (ncoast!allbery%Case.CSNet@CSNet-Relay.ARPA)
..decvax!cwruecmp!ncoast!allbery (..ncoast!tdi2!root for business)
6615 Center St., Mentor, OH 44060 (I moved) --Phone: +01 216 974 9210
CIS 74106,1032 -- MCI MAIL BALLBERY (WARNING: I am only a part-time denizen...)