mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00: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: 5f64946b8740a5d944f48ec430470265703bfe5e) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
cb68e9a2fe
commit
472c86127a
@@ -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