lkml.org 
[lkml]   [2004]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [2.6.8.1/x86] The kernel is _always_ compiled with -msoft-float
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:06    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site