]> code.ossystems Code Review - openembedded-core.git/commitdiff
security_flags.inc: Do not build gcc for powerpc with PIE defaults
authorKhem Raj <raj.khem@gmail.com>
Tue, 4 Jul 2017 01:33:10 +0000 (18:33 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Jul 2017 12:33:58 +0000 (13:33 +0100)
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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/conf/distro/include/security_flags.inc

index dd713b9818b8c9bc267563b1310927af01bb94cb..ab2062b78f5eb6cd479c7417ced30b4019df3522 100644 (file)
@@ -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 = ""