Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 1998 15:20:43 -0500
From:      Chris Csanady <ccsanady@friley-185-114.res.iastate.edu>
To:        Peter Wemm <peter@FreeBSD.ORG>
Cc:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/boot/common load_elf.c Makefile.inc 
Message-ID:  <199809302020.PAA13391@friley-185-114.res.iastate.edu>
In-Reply-To: Your message of "Wed, 30 Sep 1998 12:38:27 PDT." <199809301938.MAA15062@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help

Ok, this sounds good.  I have been wondering for quite a while though
how to actually use the new boot blocks.  I will be installing
FreeBSD/alpha in a few days, and this part of it is unclear to me.

Can someone provide a simple explanation of how the new boot blocks
actually work, and how to install them on the alpha and i386?

Thanks,
Chris Csanady

>peter       1998/09/30 12:38:26 PDT
>
>  Modified files:
>    sys/boot/common      Makefile.inc 
>  Added files:
>    sys/boot/common      load_elf.c 
>  Log:
>  ELF loader, part 1.  It works with ELF kernels generated on the i386
>  so far, and should probably be able to be made to work for the alpha
>  without too much trouble once it's connected up and my assumptions tested.
>  
>  I think (but have not tested) it will also load "old" ELF kernels that
>  were not linked with DYNAMIC headers.
>  
>  The module glue is yet to come. (oh fun.. :-)
>  
>  It does not explicitly load symbols [yet].  The _DYNAMIC data contains a
>  runtime symbol set that ddb can use via ddb/db_kld.c.  It'll be missing
>  some detail that stabs normally provides (eg: number of args to a function,
>  line numbers, etc).  On the other hand, those minimal symbols will always
>  be available even on a stripped kernel.
>  
>  This is mostly stolen from load_aout.c with some ideas from
>  alpha/libalpha/elf_freebsd.c.
>  
>  Revision  Changes    Path
>  1.6       +2 -2      src/sys/boot/common/Makefile.inc






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