From bcd83f847520a6e92fc3e8d2934f7e1c75380406 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lo=C3=AFMinier?= Date: Mon, 14 Mar 2011 13:01:36 +0530 Subject: [PATCH] Add -marm -fno-stack-protector to CFLAGS on ARM MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The Linaro-based arm-linux-gnueabi cross-compiler in Ubuntu defaults to Thumb 2 and enables the stack protector by default, both of which can break x-loader at runtime (the former breaks the build). Signed-off-by: LoïMinier Signed-off-by: Anand Gadiyar --- config.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.mk b/config.mk index f4c58e9..80bc0ad 100644 --- a/config.mk +++ b/config.mk @@ -148,6 +148,9 @@ CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes \ else CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes endif +ifeq ($(ARCH),arm) +CFLAGS += -marm -fno-stack-protector +endif AFLAGS_DEBUG := -Wa,-gstabs AFLAGS := $(AFLAGS_DEBUG) -D__ASSEMBLY__ $(CPPFLAGS) -- 2.39.2