diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-08-14 18:40:05 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-16 09:49:38 +0100 |
commit | 6870d1063742e447728b462f856ee4e1fef9df6c (patch) | |
tree | a420497b51331f7daf54d92596aa095aa29657ee | |
parent | 7e174f368292c662cdbb398b5dd054f5342d253f (diff) | |
download | poky-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>
-rw-r--r-- | meta/conf/distro/include/security_flags.inc | 3 |
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 |
31 | SECURITY_CFLAGS_powerpc = "-fstack-protector-strong ${lcl_maybe_fortify} ${SECURITY_NOPIE_CFLAGS}" | 31 | SECURITY_CFLAGS_powerpc = "-fstack-protector-strong ${lcl_maybe_fortify} ${SECURITY_NOPIE_CFLAGS}" |
32 | SECURITY_CFLAGS_pn-libgcc_powerpc = "" | 32 | SECURITY_CFLAGS_pn-libgcc_powerpc = "" |
33 | SECURITY_CFLAGS_append_powerpc_pn-libdrm = " -fPIC -DPIC" | ||
34 | SECURITY_CFLAGS_append_powerpc_pn-libinput = " -fPIC -DPIC" | ||
35 | SECURITY_CFLAGS_append_powerpc_pn-at-spi2-core = " -fPIC -DPIC" | ||
33 | GCCPIE_powerpc = "" | 36 | GCCPIE_powerpc = "" |
34 | GLIBCPIE_powerpc = "" | 37 | GLIBCPIE_powerpc = "" |
35 | 38 | ||