diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-03-01 18:26:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-01 22:18:47 +0000 |
commit | 8ec37c0811a57f779896ccdaf8d7f3f66f81f3bb (patch) | |
tree | 5561658103b080c236a80d76dd5c0c3645d4cb89 /meta/conf/distro | |
parent | de4b8febd8ae1c57742bd3452b6889814b2fd3ef (diff) | |
download | poky-8ec37c0811a57f779896ccdaf8d7f3f66f81f3bb.tar.gz |
glibc: Enable static PIE support when security_flags are enabled
(From OE-Core rev: 8e4ece7bf0b09275a34ce8e7cc3e1e54a366c361)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.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.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc index 49d2417a88..d66dd57649 100644 --- a/meta/conf/distro/include/security_flags.inc +++ b/meta/conf/distro/include/security_flags.inc | |||
@@ -6,6 +6,7 @@ | |||
6 | # in the DISTRO="poky-lsb" configuration. | 6 | # in the DISTRO="poky-lsb" configuration. |
7 | 7 | ||
8 | GCCPIE ?= "--enable-default-pie" | 8 | GCCPIE ?= "--enable-default-pie" |
9 | GLIBCPIE ?= "--enable-static-pie" | ||
9 | 10 | ||
10 | # _FORTIFY_SOURCE requires -O1 or higher, so disable in debug builds as they use | 11 | # _FORTIFY_SOURCE requires -O1 or higher, so disable in debug builds as they use |
11 | # -O0 which then results in a compiler warning. | 12 | # -O0 which then results in a compiler warning. |
@@ -30,6 +31,7 @@ SECURITY_X_LDFLAGS ?= "-fstack-protector-strong -Wl,-z,relro" | |||
30 | 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}" |
31 | SECURITY_CFLAGS_pn-libgcc_powerpc = "" | 32 | SECURITY_CFLAGS_pn-libgcc_powerpc = "" |
32 | GCCPIE_powerpc = "" | 33 | GCCPIE_powerpc = "" |
34 | GLIBCPIE_powerpc = "" | ||
33 | 35 | ||
34 | # arm specific security flag issues | 36 | # arm specific security flag issues |
35 | SECURITY_CFLAGS_pn-glibc = "" | 37 | SECURITY_CFLAGS_pn-glibc = "" |