diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-08-19 10:23:34 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-20 17:38:22 +0100 |
commit | d0b2393ce7b07670d3be08c20e51b2b47263a755 (patch) | |
tree | 1ef82099f34caf7c2f3862295e8d543b0fd77c9a /meta/conf | |
parent | 08fbdc02e32d715ae94e3b9603fb3ec8351c8fd3 (diff) | |
download | poky-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')
-rw-r--r-- | meta/conf/distro/include/security_flags.inc | 7 |
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" | |||
28 | SECURITY_X_LDFLAGS ?= "-fstack-protector-strong -Wl,-z,relro" | 28 | SECURITY_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 |
31 | SECURITY_CFLAGS_powerpc = "-fstack-protector-strong ${lcl_maybe_fortify} ${SECURITY_NOPIE_CFLAGS}" | ||
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" | ||
36 | GCCPIE_powerpc = "" | 31 | GCCPIE_powerpc = "" |
37 | GLIBCPIE_powerpc = "" | 32 | GLIBCPIE_powerpc = "" |
33 | SECURITY_CFLAGS_remove_powerpc = "${SECURITY_PIE_CFLAGS}" | ||
34 | SECURITY_CFLAGS_pn-libgcc_powerpc = "" | ||
38 | 35 | ||
39 | SECURITY_CFLAGS_pn-glibc = "" | 36 | SECURITY_CFLAGS_pn-glibc = "" |
40 | SECURITY_CFLAGS_pn-glibc-initial = "" | 37 | SECURITY_CFLAGS_pn-glibc-initial = "" |