diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2019-01-06 03:44:40 +0000 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-01-18 03:10:14 +0000 |
commit | 84d319b2fda958d73a58bf338ee212da772d0cc6 (patch) | |
tree | f0a3383b2404ba80deee35c8dfd4a808b06d8c3b | |
parent | 34163a2c7d1c3b841a35b242dbdbda25c4fb1ecb (diff) | |
download | klibc-84d319b2fda958d73a58bf338ee212da772d0cc6.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.klibc | 3 |
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 |