aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorten Borup Petersen <morten.petersen@arm.com>2019-05-15 15:24:41 +0100
committerTushar Khandelwal <tushar.khandelwal@arm.com>2019-05-21 10:09:21 +0100
commit3a07e13fe8000e31068d91cd576daf7556267020 (patch)
tree9b55e346149a129aeeb5b764f1740e36e9bf87c3
parent36db7a10e374580ecd0cfe046f52d1909eb9c99d (diff)
Enable SDL-recommended flags in TF MakefileCORSTONE-700-2019.09.23CORSTONE-700-19.02corstone700-19.02
Change-Id: If8cf6b78671df415a9303b2b95e55228329283e9 Signed-off-by: Morten Borup Petersen <morten.petersen@arm.com>
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 41a64f93e..c18a2291f 100644
--- a/Makefile
+++ b/Makefile
@@ -235,7 +235,13 @@ ERRORS := -Werror
endif
CPPFLAGS = ${DEFINES} ${INCLUDES} ${MBEDTLS_INC} -nostdinc \
- -Wmissing-include-dirs $(ERRORS) $(WARNINGS)
+ -Wmissing-include-dirs $(ERRORS) $(WARNINGS) \
+ -D_FORTIFY_SOURCE=2 \
+ -D_GLIBCXX_ASSERTIONS -fpic -shared \
+ -Wformat -Werror=format-security \
+ -Werror=implicit-function-declaration -pipe \
+ -grecord-gcc-switches \
+ -Wl,-z,defs -Wl,-z,now -Wl,-z,relro
ASFLAGS += $(CPPFLAGS) $(ASFLAGS_$(ARCH)) \
-D__ASSEMBLY__ -ffreestanding \
-Wa,--fatal-warnings