[oe-commits] [openembedded-core] 10/11: security_flags.inc: Do not build gcc for powerpc with PIE defaults

git at git.openembedded.org git at git.openembedded.org
Thu Jul 6 22:57:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 5e4de4258dcc4115c1e69597415ea5b550a619fb
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Mon Jul 3 18:33:10 2017 -0700

    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 at gmail.com>
---
 meta/conf/distro/include/security_flags.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc
index dd713b9..ab2062b 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 = ""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list