aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-24 09:27:03 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-08-18 16:04:26 +1000
commitcd8e5c179461591e16d175132ff3446e70a8980d (patch)
treee0633419d92a448e470f891de6a3fd3059a7acc6 /Makefile.main
parent98e09fb48a22949fe8e073f866425643e9501767 (diff)
downloadskiboot-cd8e5c179461591e16d175132ff3446e70a8980d.zip
skiboot-cd8e5c179461591e16d175132ff3446e70a8980d.tar.gz
skiboot-cd8e5c179461591e16d175132ff3446e70a8980d.tar.bz2
Don't set -fstack-protector-all unconditionally
We set it already in DEBUG builds and we use -fstack-protector-strong in release builds which provides most of the benefits and is more efficient. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.main b/Makefile.main
index 098e593..041aab1 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -65,7 +65,7 @@ ifeq ($(DEBUG),1)
CPPFLAGS += -DDEBUG -DCCAN_LIST_DEBUG
endif
-CFLAGS := -fno-strict-aliasing -fstack-protector-all -pie -mbig-endian -m64
+CFLAGS := -fno-strict-aliasing -pie -mbig-endian -m64
CFLAGS += -Wl,--oformat,elf64-powerpc
CFLAGS += $(call try-cflag,$(CC),-mabi=elfv1)
CFLAGS += $(call try-cflag,$(CC),-std=gnu11)