aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2012-01-10 13:21:53 +0000
committerRainer Orth <ro@gcc.gnu.org>2012-01-10 13:21:53 +0000
commit0f24748c58ce2417596a15cb09db935a45da85fb (patch)
tree18da7c4b330bf59665da77a6f244280dabc05ee6
parent7c5825a781bd6551b62516b3340c5eec13cfdd4c (diff)
downloadgcc-0f24748c58ce2417596a15cb09db935a45da85fb.zip
gcc-0f24748c58ce2417596a15cb09db935a45da85fb.tar.gz
gcc-0f24748c58ce2417596a15cb09db935a45da85fb.tar.bz2
Check if linker supports R_386_TLS_GD_PLT, R_386_TLS_LDM_PLT relocs
* configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker supports R_386_TLS_GD_PLT reloc. (gcc_cv_as_ix86_tlsldmplt): Check if linker supports R_386_TLS_LDM_PLT reloc. * configure: Regenerate. * config.in: Regenerate. From-SVN: r183063
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/config.in4
-rwxr-xr-xgcc/configure12
-rw-r--r--gcc/configure.ac20
4 files changed, 36 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 14d3d4d..99a119f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,12 @@
+2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
+ supports R_386_TLS_GD_PLT reloc.
+ (gcc_cv_as_ix86_tlsldmplt): Check if linker
+ supports R_386_TLS_LDM_PLT reloc.
+ * configure: Regenerate.
+ * config.in: Regenerate.
+
2012-01-10 Georg-Johann Lay <avr@gjlay.de>
PR target/49868
diff --git a/gcc/config.in b/gcc/config.in
index 18dde6f..2833211 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -357,13 +357,13 @@
#endif
-/* Define if your assembler supports @tlsgdplt. */
+/* Define if your assembler and linker support @tlsgdplt. */
#ifndef USED_FOR_TARGET
#undef HAVE_AS_IX86_TLSGDPLT
#endif
-/* Define if your assembler supports @tlsldmplt. */
+/* Define if your assembler and linker support @tlsldmplt. */
#ifndef USED_FOR_TARGET
#undef HAVE_AS_IX86_TLSLDMPLT
#endif
diff --git a/gcc/configure b/gcc/configure
index 4dd9faa..f1a6b62 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -24823,7 +24823,11 @@ else
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; }
then
- gcc_cv_as_ix86_tlsgdplt=yes
+ if test x$gcc_cv_ld != x \
+ && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
+ gcc_cv_as_ix86_tlsgdplt=yes
+ fi
+ rm -f conftest
else
echo "configure: failed program was" >&5
cat conftest.s >&5
@@ -24854,7 +24858,11 @@ else
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; }
then
- gcc_cv_as_ix86_tlsldmplt=yes
+ if test x$gcc_cv_ld != x \
+ && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
+ gcc_cv_as_ix86_tlsldmplt=yes
+ fi
+ rm -f conftest
else
echo "configure: failed program was" >&5
cat conftest.s >&5
diff --git a/gcc/configure.ac b/gcc/configure.ac
index ffe7148..b486ace 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -2,7 +2,7 @@
# Process this file with autoconf to generate a configuration script.
# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
-# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+# 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
#This file is part of GCC.
@@ -3674,15 +3674,25 @@ foo: nop
gcc_GAS_CHECK_FEATURE([R_386_TLS_GD_PLT reloc],
gcc_cv_as_ix86_tlsgdplt,,,
- [call tls_gd@tlsgdplt],,
+ [call tls_gd@tlsgdplt],
+ [if test x$gcc_cv_ld != x \
+ && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
+ gcc_cv_as_ix86_tlsgdplt=yes
+ fi
+ rm -f conftest],
[AC_DEFINE(HAVE_AS_IX86_TLSGDPLT, 1,
- [Define if your assembler supports @tlsgdplt.])])
+ [Define if your assembler and linker support @tlsgdplt.])])
gcc_GAS_CHECK_FEATURE([R_386_TLS_LDM_PLT reloc],
gcc_cv_as_ix86_tlsldmplt,,,
- [call tls_ld@tlsldmplt],,
+ [call tls_ld@tlsldmplt],
+ [if test x$gcc_cv_ld != x \
+ && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
+ gcc_cv_as_ix86_tlsldmplt=yes
+ fi
+ rm -f conftest],
[AC_DEFINE(HAVE_AS_IX86_TLSLDMPLT, 1,
- [Define if your assembler supports @tlsldmplt.])])
+ [Define if your assembler and linker support @tlsldmplt.])])
;;