]> code.ossystems Code Review - openembedded-core.git/commitdiff
security_flags: Add PIC to cflags for some recipes on ppc
authorKhem Raj <raj.khem@gmail.com>
Wed, 15 Aug 2018 01:40:05 +0000 (18:40 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Aug 2018 20:46:24 +0000 (21:46 +0100)
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@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/distro/include/security_flags.inc

index 6245e89ada4508de22a0132167274283edc543d5..52e1e4ebc56027178c50726d7d16f47ae0a6cb84 100644 (file)
@@ -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 = ""