summaryrefslogtreecommitdiffstats
path: root/meta/conf/distro/include/security_flags.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-08-19 10:23:34 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-20 17:38:22 +0100
commitd0b2393ce7b07670d3be08c20e51b2b47263a755 (patch)
tree1ef82099f34caf7c2f3862295e8d543b0fd77c9a /meta/conf/distro/include/security_flags.inc
parent08fbdc02e32d715ae94e3b9603fb3ec8351c8fd3 (diff)
downloadpoky-d0b2393ce7b07670d3be08c20e51b2b47263a755.tar.gz
powerpc: Remove pie flags from compiler cmdline
Original approach to add -no-<pie> flags cause link time behavior changes where packages start to lose the -fPIC -DPIC in compiler cmdline and this list keeps growing as we build more and more packages, Instead lets just remove the options we dont need from SECURITY_CFLAGS this makes it more robust and less intrusive This also means we do not need to re-add pic options as we started to do for affected packages (From OE-Core rev: 1520f5a345fd03d46f33f0efaf76191e96344bec) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/distro/include/security_flags.inc')
-rw-r--r--meta/conf/distro/include/security_flags.inc7
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc
index 52e1e4ebc5..4e20a4d0f8 100644
--- a/meta/conf/distro/include/security_flags.inc
+++ b/meta/conf/distro/include/security_flags.inc
@@ -28,13 +28,10 @@ SECURITY_LDFLAGS ?= "-fstack-protector-strong -Wl,-z,relro,-z,now"
28SECURITY_X_LDFLAGS ?= "-fstack-protector-strong -Wl,-z,relro" 28SECURITY_X_LDFLAGS ?= "-fstack-protector-strong -Wl,-z,relro"
29 29
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}"
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"
36GCCPIE_powerpc = "" 31GCCPIE_powerpc = ""
37GLIBCPIE_powerpc = "" 32GLIBCPIE_powerpc = ""
33SECURITY_CFLAGS_remove_powerpc = "${SECURITY_PIE_CFLAGS}"
34SECURITY_CFLAGS_pn-libgcc_powerpc = ""
38 35
39SECURITY_CFLAGS_pn-glibc = "" 36SECURITY_CFLAGS_pn-glibc = ""
40SECURITY_CFLAGS_pn-glibc-initial = "" 37SECURITY_CFLAGS_pn-glibc-initial = ""