[PATCH] ARM: pass -msoft-float

Sascha Hauer s.hauer at pengutronix.de
Thu Dec 8 05:18:41 EST 2011


This is necessary to prevent NEON instructions from leaking into
the binary.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index e5e951c..a3e12e6 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -39,8 +39,8 @@ ifeq ($(CONFIG_ARM_UNWIND),y)
 CFLAGS_ABI	+=-funwind-tables
 endif
 
-CPPFLAGS += $(CFLAGS_ABI) $(arch-y) $(tune-y)
-AFLAGS   += -include asm/unified.h
+CPPFLAGS += $(CFLAGS_ABI) $(arch-y) $(tune-y) -msoft-float
+AFLAGS   += -include asm/unified.h -msoft-float
 
 # Machine directory name.  This list is sorted alphanumerically
 # by CONFIG_* macro name.
-- 
1.7.7.3




More information about the barebox mailing list