summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-06-13 19:18:38 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-08 13:34:45 +0100
commit1504f8f09bdee5164d822d1391f0538f758d34ac (patch)
tree196fc85e1d2e5506a4044d998a9a9a883aadbe77 /meta/recipes-support
parent25018c4807a431382488dcf46731c83c2e9baffb (diff)
downloadpoky-1504f8f09bdee5164d822d1391f0538f758d34ac.tar.gz
libunwind: We set -fPIE in security flags now if gcc is not configured for default PIE
(From OE-Core rev: 24755afceb38530215a59d53f37df31ca77b0b6e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/libunwind/libunwind_1.2.bb4
1 files changed, 0 insertions, 4 deletions
diff --git a/meta/recipes-support/libunwind/libunwind_1.2.bb b/meta/recipes-support/libunwind/libunwind_1.2.bb
index e598e40c6f..c6312f24fd 100644
--- a/meta/recipes-support/libunwind/libunwind_1.2.bb
+++ b/meta/recipes-support/libunwind/libunwind_1.2.bb
@@ -21,8 +21,4 @@ EXTRA_OECONF_append_libc-musl = " --disable-documentation --disable-tests "
21ARM_INSTRUCTION_SET_armv4 = "arm" 21ARM_INSTRUCTION_SET_armv4 = "arm"
22ARM_INSTRUCTION_SET_armv5 = "arm" 22ARM_INSTRUCTION_SET_armv5 = "arm"
23 23
24# see https://sourceware.org/bugzilla/show_bug.cgi?id=19987
25SECURITY_CFLAGS_remove_aarch64 = "-fpie"
26SECURITY_CFLAGS_append_aarch64 = " -fPIE"
27
28LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" 24LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"