1From 6c3b05b74ccd49d8ba246bfef0c2e549b9f2bf7b Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Tue, 29 Oct 2019 16:14:18 +0100 4Subject: [PATCH] Makefile: unconditionally disable SSP 5 6Though -nostdlib is passed in $(CFLAGS), -fno-stack-protector must also be 7passed to avoid linking errors related to undefined references to 8'__stack_chk_guard' and '__stack_chk_fail' if toolchain enforces 9-fstack-protector. 10 11Fixes: 12 - http://autobuild.buildroot.net/results/3a3a21f3c35ea025e9b93e09c2454aed0ad31034 13 14Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 15--- 16 Makefile | 3 ++- 17 1 file changed, 2 insertions(+), 1 deletion(-) 18 19diff --git a/Makefile b/Makefile 20index c3ec071..5226006 100644 21--- a/Makefile 22+++ b/Makefile 23@@ -16,7 +16,8 @@ INCLUDES = $(SRCDIR)/include 24 CFLAGS =-march=armv7-m -mcpu=cortex-m3 -mthumb -nostdlib -Wall -Wundef \ 25 -Werror-implicit-function-declaration -Wstrict-prototypes \ 26 -Wdeclaration-after-statement -fno-delete-null-pointer-checks \ 27- -Wempty-body -fno-strict-overflow -g -I$(INCLUDES) -O2 28+ -Wempty-body -fno-strict-overflow -fno-stack-protector \ 29+ -g -I$(INCLUDES) -O2 30 LDFLAGS =-nostartfiles -fno-exceptions -Tfirmware.ld 31 32 EXECUTABLE=am335x-pm-firmware.elf 33-- 342.23.0 35 36