mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-21 20:02:51 +01:00
Makefile: Enable Stack protector flag
This change will enable stack protector for u-boot code for ipq807x. Change-Id: Iea28c20efa3bf582728e8a0099f01c8f93595ff6 Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
This commit is contained in:
parent
305ca3b4d5
commit
8aef0ad840
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
|
@ -566,7 +566,11 @@ ifdef BUILD_TAG
|
|||
KBUILD_CFLAGS += -DBUILD_TAG='"$(BUILD_TAG)"'
|
||||
endif
|
||||
|
||||
KBUILD_CFLAGS += $(call cc-option,-fno-stack-protector)
|
||||
ifdef CONFIG_ARCH_IPQ807x
|
||||
KBUILD_CFLAGS += $(call cc-option,-fstack-protector)
|
||||
else
|
||||
KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector)
|
||||
endif
|
||||
KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks)
|
||||
|
||||
KBUILD_CFLAGS += -g
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue