I've just checked in a horde of changes that implements most of
grub/asmstub.c using libcurses and some semi-portable disk hackery.  I
also bumped up the GCC warning level to -Wall -Wmissing-prototypes
-Wunused, and made extensive code cleanups until it was warning-free.

In the process, I fixed a few bugs, but the best thing is that my
changes don't seem to break anything!

I encourage you to compile GRUB with --enable-sbin-grub, and run the
grub program yourself.  It's really cool.

I have one question for you folks: under Linux on the i386, how do you
move the stack to a different location, then move it back?  I've
attempted to do this in asmstub.c (grub_stage2) [SIMULATE_STACK], but
I don't know the necessary GCC magic.

My reason is that I want grub_scratch_mem to be a memory image of the
i386 machine at bootup.  That way, I can check for buffer and stack
overruns the same as Electric Fence.

Any help would be appreciated,

-- 
 Gordon Matzigkeit <[EMAIL PROTECTED]>  //\ I'm a FIG (http://www.fig.org/)
Committed to freedom and diversity \// I use GNU (http://www.gnu.org/)

Reply via email to