[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161021111600.9417-1-bigeasy@linutronix.de>
Date: Fri, 21 Oct 2016 13:16:00 +0200
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To: Michal Marek <mmarek@...e.com>
Cc: linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
ben@...adent.org.uk,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Subject: [RFC PATCH] kbuild: add -fno-PIE
Debian started to build the gcc with --enable-default-pie by default so the
kernel build ends before it starts properly with:
|kernel/bounds.c:1:0: error: code model kernel does not support PIC mode
Is this okay or do we want some kind of check to see if -fno-PIE is supported?
It is mentioned in the 4.4.7 gcc manpage is it is not *that* new :)
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index bf6e44a421df..97296d66b586 100644
--- a/Makefile
+++ b/Makefile
@@ -398,7 +398,7 @@ KBUILD_CPPFLAGS := -D__KERNEL__
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
- -Wno-format-security \
+ -Wno-format-security -fno-PIE \
-std=gnu89
KBUILD_AFLAGS_KERNEL :=
--
2.9.3
Powered by blists - more mailing lists