2009-10-16 Colin Watson <cjwatson@ubuntu.com>

* configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
	-mno-3dnow on x86 architectures.  Some toolchains enable these
	features by default, but they rely on registers that aren't enabled
	in GRUB.  Thanks to Vladimir Serbinenko for the suggestion.
This commit is contained in:
cjwatson 2009-10-16 15:38:42 +00:00
parent 035f712204
commit 6f3cd880e9
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2009-10-16 Colin Watson <cjwatson@ubuntu.com>
* configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
-mno-3dnow on x86 architectures. Some toolchains enable these
features by default, but they rely on registers that aren't enabled
in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
2009-10-15 Robert Millan <rmh.grub@aybabtu.com> 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
Make entry text a bit more readable. Make entry text a bit more readable.

View file

@ -252,6 +252,10 @@ if test "x$TARGET_CFLAGS" = x; then
else else
TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1" TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
fi fi
# Some toolchains enable these features by default, but they need
# registers that aren't set up properly in GRUB.
TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
fi fi
# By default, GCC 4.4 generates .eh_frame sections containing unwind # By default, GCC 4.4 generates .eh_frame sections containing unwind