diff options
author | Stephen Arnold <stephen.arnold42@gmail.com> | 2017-02-12 18:25:27 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-23 12:49:50 -0800 |
commit | d0bec7eb8dd5207978c005f80ad3aecf5a26d5fa (patch) | |
tree | d54c6bd07e77e0832b2aa659d8faa47a3d65a31c /meta/recipes-devtools/gcc/gcc-6.3.inc | |
parent | bdf3009a254ae6e3066e0b58f948f7bd71b3c260 (diff) | |
download | poky-d0bec7eb8dd5207978c005f80ad3aecf5a26d5fa.tar.gz |
gcc-6: Add fix for missing no-PIE flags
Fixes build on hardened PAX host with gcc-5 (linker error on relocs).
Completes no-PIE config by adding to ALL_* flags variables.
Borrowed from Gentoo gcc patches, tested on 2 hardened amd64 hosts.
Upstream-Status: Inappropriate [configuration]
Commited by: Gentoo Toolchain Project <toolchain@gentoo.org>
(From OE-Core rev: c178791cd78d5a9ebc4d7b7790e647a9bafe9cf2)
(From OE-Core rev: fcb236ea7cd1ac052719187fefed60ebf1a30ac8)
Signed-off-by: Stephen Arnold <stephen.arnold42@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-6.3.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-6.3.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-6.3.inc b/meta/recipes-devtools/gcc/gcc-6.3.inc index 0f1b88bea7..ce414720ce 100644 --- a/meta/recipes-devtools/gcc/gcc-6.3.inc +++ b/meta/recipes-devtools/gcc/gcc-6.3.inc | |||
@@ -79,6 +79,7 @@ SRC_URI = "\ | |||
79 | file://0046-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch \ | 79 | file://0046-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch \ |
80 | file://0047-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch \ | 80 | file://0047-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch \ |
81 | file://0048-sync-gcc-stddef.h-with-musl.patch \ | 81 | file://0048-sync-gcc-stddef.h-with-musl.patch \ |
82 | file://0054_all_nopie-all-flags.patch \ | ||
82 | ${BACKPORTS} \ | 83 | ${BACKPORTS} \ |
83 | " | 84 | " |
84 | BACKPORTS = "" | 85 | BACKPORTS = "" |