From 71664fd8d2d2550a56cc6a9c2b81797bfe90d613 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Mon, 17 Nov 2014 18:22:04 +1100 Subject: 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 --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b610222..39c97d5 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,11 @@ PORE ?= 1 KERNEL ?= # +# Optional build with advanced stack checking +# +STACK_CHECK ?= 0 + +# # Where is the source directory, must be a full path (no ~) # Example: SRC= /home/me/skiboot # -- cgit v1.1