mirror of
https://git.yoctoproject.org/poky
synced 2026-02-25 10:59:41 +01:00
security_flags: disable static PIE in glibc
Static PIE doesn't work entirely right in GCC 7, for example ldconfig on ARM with the flags enabled will something segfault during initialisation. To mitigate this until we have GCC 8 integrated, don't enable static PIE. (From OE-Core rev: 502de6f5db232a104eb269782a690f52fd665ef4) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
04810e606c
commit
5b544a3bce
@@ -6,7 +6,7 @@
|
||||
# in the DISTRO="poky-lsb" configuration.
|
||||
|
||||
GCCPIE ?= "--enable-default-pie"
|
||||
GLIBCPIE ?= "--enable-static-pie"
|
||||
# If static PIE is known to work well, GLIBCPIE="--enable-static-pie" can be set
|
||||
|
||||
# _FORTIFY_SOURCE requires -O1 or higher, so disable in debug builds as they use
|
||||
# -O0 which then results in a compiler warning.
|
||||
|
||||
Reference in New Issue
Block a user