From: Ben Hutchings Date: Sun, 6 Jan 2019 03:44:40 +0000 (+0000) Subject: Disable PIE X-Git-Tag: archive/raspbian/2.0.4-15+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fad5562af4e93f0cf47003d1f0d09ea062f89b5a;p=klibc.git 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 --- 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