aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2019-01-06 03:44:40 +0000
committerBen Hutchings <ben@decadent.org.uk>2019-01-06 19:31:04 +0000
commite0e3efd87fa1286800dafb1fba4c64d1329efddb (patch)
tree0d489607de0202af96bf163bec3aa9d5239ec362
parent31f0d5525f39cd9427b6bac904f847178bb4d266 (diff)
downloadklibc-e0e3efd87fa1286800dafb1fba4c64d1329efddb.tar.gz
[klibc] 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. Link: https://www.zytor.com/pipermail/klibc/2019-January/004028.html Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--scripts/Kbuild.klibc3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc
index f147a37309e39..35c375edd9097 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