loader breaks with -O2 optimizations

From: Stephan F. Yaraghchi <stephan_at_yaraghchi.org>
Date: Tue, 30 Oct 2007 15:32:19 +0100
After making world on a freshly installed 7.0-BETA1
the system does not boot anymore due to a broken loader:


FreeBSD/i386 bootstrap loader, Revision 1.1
(root_at_bigblue, Tue Oct 30 11:26:32 CET 2007)
Can't work out which disk we are booting from.
Guessed BIOS device 0xffffffff not found by probes defaulting to disk0:

panic: free: guard1 fail_at_ 0x6ded4 from
/usr/src/sys/boot/i386/loader/../../common/module.c:959

--> Press a key on the console to reboot <--


I found out that the following line in my make.conf causes
the problem:

CFLAGS= -O2 -funroll-loops -pipe


After changing down to -O1 and making /usr/src/sys/boot again
the systems behaves properly at boot.

Is this behavior intended?

-- 
Stephan.


www.deine-stimme-gegen-armut.de
Received on Tue Oct 30 2007 - 14:00:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:20 UTC