[PATCH] Add -msoft-float to BOOTCFLAGS
Benjamin Herrenschmidt
benh at kernel.crashing.org
Tue May 15 11:08:57 EST 2007
On Mon, 2007-05-14 at 19:52 -0500, Josh Boyer wrote:
> We want to avoid any float instructions that may occur in the wrapper that
> may be generated if the compiler isn't told not to.
>
> Signed-off-by: Josh Boyer <jwboyer at linux.vnet.ibm.com>
Acked-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> ---
> arch/powerpc/boot/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-2.6.orig/arch/powerpc/boot/Makefile
> +++ linux-2.6/arch/powerpc/boot/Makefile
> @@ -24,7 +24,7 @@ all: $(obj)/zImage
>
> HOSTCC := gcc
> BOOTCFLAGS := $(HOSTCFLAGS) -fno-builtin -nostdinc -isystem \
> - $(shell $(CROSS32CC) -print-file-name=include) -fPIC
> + $(shell $(CROSS32CC) -print-file-name=include) -fPIC -msoft-float
> BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc
>
> ifeq ($(call cc-option-yn, -fstack-protector),y)
More information about the Linuxppc-dev
mailing list