blob: 8ee1bdc60d71f50598224c796824379bd2f489c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- a/Makefile 2017-08-09 16:40:43.807049433 +1000
+++ b/Makefile 2017-08-09 16:42:03.494449278 +1000
@@ -572,6 +572,12 @@
# Defaults to vmlinux, but the arch makefile usually adds further targets
all: vmlinux
+# force no-pie for distro compilers that enable pie by default
+KBUILD_CFLAGS += $(call cc-option, -fno-pie)
+KBUILD_CFLAGS += $(call cc-option, -no-pie)
+KBUILD_AFLAGS += $(call cc-option, -fno-pie)
+KBUILD_CPPFLAGS += $(call cc-option, -fno-pie)
+
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
else
|