aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRahul Chaudhry <rahulchaudhry@google.com>2017-07-12 15:36:32 -0700
committerRahul Chaudhry <rahulchaudhry@google.com>2017-07-13 22:42:43 +0000
commit0c5a656a1322e137fa4a251f2ccc6c4022918c0a (patch)
tree1649017ddf8e78a3860ea449317d0a1d78042a41
parentfe948798823b679925aed6b60efec51b9af7dd09 (diff)
downloadtoolchain_gcc-0c5a656a1322e137fa4a251f2ccc6c4022918c0a.tar.gz
toolchain_gcc-0c5a656a1322e137fa4a251f2ccc6c4022918c0a.tar.bz2
toolchain_gcc-0c5a656a1322e137fa4a251f2ccc6c4022918c0a.zip
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
-rwxr-xr-xgcc-4.9/gcc/configure3
1 files changed, 2 insertions, 1 deletions
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