From 6f3cd880e9ea91441f4aa318234a8ad590fed9af Mon Sep 17 00:00:00 2001 From: cjwatson Date: Fri, 16 Oct 2009 15:38:42 +0000 Subject: [PATCH] 2009-10-16 Colin Watson * 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. --- ChangeLog | 7 +++++++ configure.ac | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index b90033393..eb874f93e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-10-16 Colin Watson + + * 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 Make entry text a bit more readable. diff --git a/configure.ac b/configure.ac index 946179966..f26b92447 100644 --- a/configure.ac +++ b/configure.ac @@ -252,6 +252,10 @@ if test "x$TARGET_CFLAGS" = x; then else TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1" 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 # By default, GCC 4.4 generates .eh_frame sections containing unwind