diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-07-03 18:33:10 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-08 13:33:58 +0100 |
commit | 4f3a9ccdb1d45804f4c094589e69e0bc87dc9c62 (patch) | |
tree | 1a77be68018938619e723d001ef423a2f82056a3 /meta/conf/distro | |
parent | c32dbe73f2089177a071ba81a9de82dac7741e44 (diff) | |
download | openembedded-core-4f3a9ccdb1d45804f4c094589e69e0bc87dc9c62.tar.gz openembedded-core-4f3a9ccdb1d45804f4c094589e69e0bc87dc9c62.tar.bz2 openembedded-core-4f3a9ccdb1d45804f4c094589e69e0bc87dc9c62.zip |
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
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/conf/distro')
-rw-r--r-- | meta/conf/distro/include/security_flags.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc index dd713b9818..ab2062b78f 100644 --- a/meta/conf/distro/include/security_flags.inc +++ b/meta/conf/distro/include/security_flags.inc @@ -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 = "" |