Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Oct 1998 11:28:32 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Peter Wemm <peter@netplex.com.au>
Cc:        Doug Rabson <dfr@nlsystems.com>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern link_aout.c 
Message-ID:  <199810101828.LAA09490@dingo.cdrom.com>
In-Reply-To: Your message of "Sat, 10 Oct 1998 17:32:16 %2B0800." <199810100932.RAA14971@spinner.netplex.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> The comment about not creating an a.out kernel module is an artifact of 
> the initialization sequence.  The boot loader creates a record for the 
> kernel, and *both* link_elf.c and link_aout.c are run.  They both see 
> _DYNAMIC and will quite happily create a linker pseudo-file entry called 
> "kernel".  It's kinda neat seeing two kernels loaded at once, but I didn't 
> want to think what would happen if the a.out module tried to interpret the 
> elf _DYNAMIC pointer as an a.out object.

If they were simply to check the *type* of the module (which they 
really ought to in order to avoid looking for a symbol table in eg. a 
splash screen image), then there'd be no problem with this.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810101828.LAA09490>