From fad5562af4e93f0cf47003d1f0d09ea062f89b5a Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 6 Jan 2019 03:44:40 +0000 Subject: [PATCH] Disable PIE We link all executables as non-relocatable, so it makes no sense to generate PIE code. In addition, PIE code on i386 requires a working GOT which we don't generate. Signed-off-by: Ben Hutchings Gbp-Pq: Name disable-pie.patch --- scripts/Kbuild.klibc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index f500d53..30a7f1f 100644 --- a/scripts/Kbuild.klibc +++ b/scripts/Kbuild.klibc @@ -67,7 +67,8 @@ include $(srctree)/scripts/Kbuild.include # --------------------------------------------------------------------------- KLIBCREQFLAGS := $(call cc-option, -fno-stack-protector, ) \ - $(call cc-option, -fwrapv, ) + $(call cc-option, -fwrapv, ) \ + $(call cc-option, -fno-PIE, ) KLIBCARCHREQFLAGS := KLIBCOPTFLAGS := KLIBCWARNFLAGS := -W -Wall -Wno-sign-compare -Wno-unused-parameter -- 2.30.2