[oe-commits] [openembedded-core] 05/12: security_flags: Add PIC to cflags for some recipes on ppc

git at git.openembedded.org git at git.openembedded.org
Wed Aug 15 20:48:05 UTC 2018


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 48c8d13a9bdcacb64a330074588f7c6bb5cae90d
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Tue Aug 14 18:40:05 2018 -0700

    security_flags: Add PIC to cflags for some recipes on ppc
    
    Fixes issues related out of range R_PPC_REL24
    e.g.
    /usr/lib/xorg/modules/input/libinput_drv.so: /usr/lib/libinput.so.10: R_PPC_REL24 relocation at 0x0e8602c4 for symbol `libevdev_has_event_code' out of range
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/conf/distro/include/security_flags.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc
index 6245e89..52e1e4e 100644
--- a/meta/conf/distro/include/security_flags.inc
+++ b/meta/conf/distro/include/security_flags.inc
@@ -30,6 +30,9 @@ 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 = ""
+SECURITY_CFLAGS_append_powerpc_pn-libdrm = " -fPIC -DPIC"
+SECURITY_CFLAGS_append_powerpc_pn-libinput = " -fPIC -DPIC"
+SECURITY_CFLAGS_append_powerpc_pn-at-spi2-core = " -fPIC -DPIC"
 GCCPIE_powerpc = ""
 GLIBCPIE_powerpc = ""
 

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


More information about the Openembedded-commits mailing list