Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: why different swapping modes on executables? Message-ID: <6923@auspex.auspex.com> Date: 30 Mar 91 23:53:57 GMT References: <1991Mar12.104352.23097@kithrup.COM> <573@adpplz.UUCP> <126505@uunet.UU.NET> Organization: Auspex Systems, Santa Clara Lines: 11 >HAHAHAHA! It's even worse than that! The Magic Number was a JUMP >(actually a branch) across the a.out header. A 407 executable >had a seven word (14 byte) header, a 410, eight words, 411 nine... >Sneaky, huh? *Real* sneaky, given that the header was, for all three types of executable, 8 words long.... "407" actually skipped all 8 words; the PC to which was added 7*2 was the PC of the instruction *following* the branch. "410" was intended to be "407+1", not "br .+10".