mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
security_flags.inc: Do not build gcc for powerpc with PIE defaults
Since we have disabled FPIE from SECURITY_CFLAGS already, we have to ensure the same with gcc, otherwise gcc (on-device) will be built defaulting to PIE, and such binaries will fail to execute (From OE-Core rev: 4f3a9ccdb1d45804f4c094589e69e0bc87dc9c62) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -29,6 +29,7 @@ SECURITY_X_LDFLAGS ?= "-fstack-protector-strong -Wl,-z,relro"
|
||||
# powerpc does not get on with pie for reasons not looked into as yet
|
||||
SECURITY_CFLAGS_powerpc = "-fstack-protector-strong ${lcl_maybe_fortify} ${SECURITY_NOPIE_CFLAGS}"
|
||||
SECURITY_CFLAGS_pn-libgcc_powerpc = ""
|
||||
GCCPIE_powerpc = ""
|
||||
|
||||
# arm specific security flag issues
|
||||
SECURITY_CFLAGS_pn-glibc = ""
|
||||
|
||||
Reference in New Issue
Block a user