diff options
author | Jing Yu <jingyu@google.com> | 2010-04-24 20:30:19 -0700 |
---|---|---|
committer | Jing Yu <jingyu@google.com> | 2010-04-24 20:30:19 -0700 |
commit | c2511ac51c9e6e6b8cd9900d6159d46718414012 (patch) | |
tree | 4f2d2810af6bf0b726c6f375258aab47ea9d8233 /gcc-4.4.0/gcc/configure | |
parent | 2c20a1914acb75c3c654893a490b96b2df2edc7a (diff) | |
download | toolchain_gcc-c2511ac51c9e6e6b8cd9900d6159d46718414012.tar.gz toolchain_gcc-c2511ac51c9e6e6b8cd9900d6159d46718414012.tar.bz2 toolchain_gcc-c2511ac51c9e6e6b8cd9900d6159d46718414012.zip |
Fix a few divergence bugs and security problem.
See README.google for details.
Change-Id: Ifbee6d934426a60f34c7301a04fc442c6c75df22
Diffstat (limited to 'gcc-4.4.0/gcc/configure')
-rwxr-xr-x | gcc-4.4.0/gcc/configure | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/gcc-4.4.0/gcc/configure b/gcc-4.4.0/gcc/configure index 299ff6915..170d4011f 100755 --- a/gcc-4.4.0/gcc/configure +++ b/gcc-4.4.0/gcc/configure @@ -20892,6 +20892,19 @@ fi fi +# Check to see if we are using gold instead of ld +echo "$as_me:$LINENO: checking whether we are using gold" >&5 +echo $ECHO_N "checking whether we are using gold... $ECHO_C" >&6 +ld_is_gold=no +if test x$gcc_cv_ld != x; then + ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q` + if echo "$ld_ver" | grep "GNU gold" > /dev/null; then + ld_is_gold=yes + fi +fi +echo "$as_me:$LINENO: result: $ld_is_gold" >&5 +echo "${ECHO_T}$ld_is_gold" >&6 + ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld case "$ORIGINAL_LD_FOR_TARGET" in @@ -21480,7 +21493,9 @@ else else gcc_cv_ld_hidden=yes ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q` - if echo "$ld_ver" | grep GNU > /dev/null; then + if test x"$ld_is_gold" == xyes; then + gcc_cv_ld_hidden=yes + elif echo "$ld_ver" | grep GNU > /dev/null; then ld_vers=`echo $ld_ver | sed -n \ -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'` ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'` @@ -22016,7 +22031,9 @@ echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6 fi -if test $in_tree_ld != yes && test x"$ld_vers" != x; then +if test x"$ld_is_gold" == xyes; then + comdat_group=yes +elif test $in_tree_ld != yes && test x"$ld_vers" != x; then comdat_group=yes if test 0"$ld_date" -lt 20050308; then if test -n "$ld_date"; then |