summaryrefslogtreecommitdiffstats
path: root/meta/conf/distro
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-08-14 18:40:05 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-16 09:49:38 +0100
commit6870d1063742e447728b462f856ee4e1fef9df6c (patch)
treea420497b51331f7daf54d92596aa095aa29657ee /meta/conf/distro
parent7e174f368292c662cdbb398b5dd054f5342d253f (diff)
downloadpoky-6870d1063742e447728b462f856ee4e1fef9df6c.tar.gz
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 (From OE-Core rev: 48c8d13a9bdcacb64a330074588f7c6bb5cae90d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/distro')
-rw-r--r--meta/conf/distro/include/security_flags.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc
index 6245e89ada..52e1e4ebc5 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"
30# powerpc does not get on with pie for reasons not looked into as yet 30# powerpc does not get on with pie for reasons not looked into as yet
31SECURITY_CFLAGS_powerpc = "-fstack-protector-strong ${lcl_maybe_fortify} ${SECURITY_NOPIE_CFLAGS}" 31SECURITY_CFLAGS_powerpc = "-fstack-protector-strong ${lcl_maybe_fortify} ${SECURITY_NOPIE_CFLAGS}"
32SECURITY_CFLAGS_pn-libgcc_powerpc = "" 32SECURITY_CFLAGS_pn-libgcc_powerpc = ""
33SECURITY_CFLAGS_append_powerpc_pn-libdrm = " -fPIC -DPIC"
34SECURITY_CFLAGS_append_powerpc_pn-libinput = " -fPIC -DPIC"
35SECURITY_CFLAGS_append_powerpc_pn-at-spi2-core = " -fPIC -DPIC"
33GCCPIE_powerpc = "" 36GCCPIE_powerpc = ""
34GLIBCPIE_powerpc = "" 37GLIBCPIE_powerpc = ""
35 38