aboutsummaryrefslogtreecommitdiff
path: root/core/Makefile.inc
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-11-17 18:22:04 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-11-17 18:22:04 +1100
commit71664fd8d2d2550a56cc6a9c2b81797bfe90d613 (patch)
tree6f55e009ff6a8b00f9f1c7a905ad4075225dec93 /core/Makefile.inc
parent31d20fc02c8ee7c12d84bc28ce732bbc362ce369 (diff)
downloadskiboot-71664fd8d2d2550a56cc6a9c2b81797bfe90d613.zip
skiboot-71664fd8d2d2550a56cc6a9c2b81797bfe90d613.tar.gz
skiboot-71664fd8d2d2550a56cc6a9c2b81797bfe90d613.tar.bz2
Stack checking extensions
This patch adds: - Normal builds are done with -fstack-protector (we want to investigate using -fstack-protector-strong on gcc4.9 but for now we just use that - Build with STACK_CHECK=1 will use -fstack-protector-all and -pg and will check the stack in mcount Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'core/Makefile.inc')
-rw-r--r--core/Makefile.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Makefile.inc b/core/Makefile.inc
index 475e2c7..07dfe75 100644
--- a/core/Makefile.inc
+++ b/core/Makefile.inc
@@ -10,4 +10,7 @@ CORE_OBJS += console-log.o ipmi.o time-utils.o pel.o pool.o errorlog.o
CORE_OBJS += timer.o i2c.o
CORE=core/built-in.o
+CFLAGS_SKIP_core/relocate.o = -pg -fstack-protector-all
+CFLAGS_SKIP_core/relocate.o += -fstack-protector -fstack-protector-strong
+
$(CORE): $(CORE_OBJS:%=core/%)