[U-Boot-Users] [PATCH] Conditionally add -fno-stack-protector to CFLAGS
Haavard Skinnemoen
hskinnemoen at atmel.com
Tue Dec 11 16:09:18 CET 2007
When compile-testing on powerpc, I get errors like this:
/home/hskinnemoen/work/git/u-boot/net/nfs.c:422: undefined reference to `__stack_chk_fail_local'
This seems to be because -fstack-protector is on by default, so
explicitly disable it on all architectures that support the option.
Signed-off-by: Haavard Skinnemoen <hskinnemoen at atmel.com>
---
config.mk | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/config.mk b/config.mk
index 79e5a31..2ebc39e 100644
--- a/config.mk
+++ b/config.mk
@@ -164,6 +164,8 @@ else
CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes
endif
+CFLAGS += $(call cc-option,-fno-stack-protector)
+
# avoid trigraph warnings while parsing pci.h (produced by NIOS gcc-2.9)
# this option have to be placed behind -Wall -- that's why it is here
ifeq ($(ARCH),nios)
--
1.5.3.6
More information about the U-Boot
mailing list