From: Steven Rostedt Subject: [PATCH RT 2/3] kbuild: add -fno-PIE Date: Sun, 30 Oct 2016 12:48:31 -0400 Message-ID: <20161030164840.942789645@goodmis.org> References: <20161030164829.552034185@goodmis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Cc: Thomas Gleixner , Carsten Emde , Sebastian Andrzej Siewior , John Kacur , Paul Gortmaker To: linux-kernel@vger.kernel.org, linux-rt-users Return-path: Content-Disposition: inline; filename=0002-kbuild-add-fno-PIE.patch Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-rt-users.vger.kernel.org 3.12.66-rt89-rc1 stable review patch. If anyone has any objections, please let me know. ------------------ From: Sebastian Andrzej Siewior Debian started to build the gcc with -fPIE 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 Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Steven Rostedt --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index eb81ece69d00..c8ce2ba51358 100644 --- a/Makefile +++ b/Makefile @@ -376,7 +376,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 \ -fno-delete-null-pointer-checks \ -std=gnu89 -- 2.9.3