From 0c5a656a1322e137fa4a251f2ccc6c4022918c0a Mon Sep 17 00:00:00 2001 From: Rahul Chaudhry Date: Wed, 12 Jul 2017 15:36:32 -0700 Subject: Disable linker PIE support with copy reloc. This feature gets enabled with binutils 2.27 upgrade, but breaks unittests in chromium os: - https://bugs.chromium.org/p/chromium/issues/detail?id=738188 This is because of the upstream gcc bug for which the patches were not backported to 4.9.x branches: - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248 BUG: None TEST: Chromium OS unittests pass again. Change-Id: I9827cbe56378727f979991993d06de0b4c6b5478 --- gcc-4.9/gcc/configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc-4.9/gcc/configure') diff --git a/gcc-4.9/gcc/configure b/gcc-4.9/gcc/configure index 436278b81..a16ecab61 100755 --- a/gcc-4.9/gcc/configure +++ b/gcc-4.9/gcc/configure @@ -27052,7 +27052,8 @@ EOF esac fi fi - +# Disable gcc linker PIE support with copy reloc +gcc_cv_ld_pie_copyreloc=no cat >>confdefs.h <<_ACEOF #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi` _ACEOF -- cgit v1.2.3