a.out magic numbers (was Referencing through a null pointer)
John F. Haugh II
jfh at rpp386.UUCP
Sun May 29 03:47:23 AEST 1988
[ speaking of the 0407 magic numbers and bootstraps at the same time ]
i don't recall this to be the case around about system iii. i hacked on
the bootstrap for the pdp/11 (11/44) and all it did was check the inode
for execute permission, then load the sucker and move it by something
like 020 bytes. [ after relocating itself to 0160000 if i remember
correctly. ] then, it did
clr r0
jmp (r0)
to start unix, if i recall correctly (i remember thinking not doing a
clr r7
was stupid, so i am pretty sure about the transfer code.)
- john.
--
John F. Haugh II | "If you aren't part of the solution,
River Parishes Programming | you are part of the precipitate."
UUCP: ihnp4!killer!rpp386!jfh | -- long since forgot who
DOMAIN: jfh at rpp386.uucp |
More information about the Comp.lang.c
mailing list