Re: [2.6.8.1/x86] The kernel is _always_ compiled with -msoft-float

From: Denis Zaitsev
Date: Tue Sep 14 2004 - 16:59:04 EST


Thank everybody.

Whould it be better to document the trick? At least, this will
prevent the others from suspicions.


--- arch/i386/Makefile.orig 2004-08-14 16:55:10.000000000 +0600
+++ arch/i386/Makefile 2004-09-15 03:37:49.000000000 +0600
@@ -20,6 +20,8 @@ OBJCOPYFLAGS := -O binary -R .note -R .c
LDFLAGS_vmlinux :=
CHECK := $(CHECK) -D__i386__=1

+# The FP must not be used in the kernel code. So, the bogus compiler
+# flag is here to catch such an attempts at the link stage.
CFLAGS += -pipe -msoft-float

# prevent gcc from keeping the stack 16 byte aligned
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/