Path: utzoo!utgpu!attcan!uunet!mcvax!jack From: jack@cwi.nl (Jack Jansen) Newsgroups: comp.unix.wizards Subject: Re: dumping core on *(NULL) is not a function of your processor Summary: Hack time.... Message-ID: <7610@boring.cwi.nl> Date: 5 Aug 88 13:47:09 GMT References: <253@iconsys.UUCP> <495@cvaxa.sussex.ac.uk> <11955@ncoast.UUCP> <2835@ttrdc.UUCP> <62735@sun.uucp> Sender: news@cwi.nl Organization: AMOEBA project, CWI, Amsterdam Lines: 11 Well, there's a simple hack to get a binary format that doesn't use a new magic number and will break hardly any existing programs: Make ld generate ZMAGIC output with the first page full of zeroes. Of course, this moves crt0.o into page 1 (and thus setting a_entry to 0x400 or something). Now, the only trick needed is that the kernel recognizes the fact that page 0 is full of zeroes and doesn't map it...... Jack Jansen, jack@cwi.nl (or jack@mcvax.uucp) The shell is my oyster.