This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Testsuite failure for gold on x86_64 Fedora 9
Daniel Jacobowitz <drow@false.org> writes:
> On Fri, Dec 12, 2008 at 07:44:49AM -0800, Ian Lance Taylor wrote:
>> Yes, thanks. The compiler supports -mtls-dialect=gnu2 but glibc does
>> not. We just need to fix the configure test for whether glibc
>> supports the new relocations. I assumed that they would be
>> implemented by glibc 2.5, but they weren't. I'm not sure that they
>> are implemented even today. I haven't gotten around to figuring out
>> whether and when they are implemented.
>
> Are these Alex's TLS descriptor relocations? If so, the first glibc
> version to include support is 2.9.
Thanks. I committed this patch.
Ian
2008-12-12 Ian Lance Taylor <iant@google.com>
* configure.ac: Update test for TLS descriptors: they are
supported as of glibc 2.9.
* configure: Rebuild.
Index: configure.ac
===================================================================
RCS file: /cvs/src/src/gold/configure.ac,v
retrieving revision 1.35
diff -p -u -r1.35 configure.ac
--- configure.ac 19 Sep 2008 22:54:57 -0000 1.35
+++ configure.ac 12 Dec 2008 16:22:35 -0000
@@ -262,18 +262,18 @@ CFLAGS="$save_CFLAGS"
AM_CONDITIONAL(TLS_GNU2_DIALECT, test "$have_tls_gnu2" = "yes")
dnl On GNU/Linux TLS descriptors are supported by the dynamic loader
-dnl only with glibc 2.5 or later.
-AC_CACHE_CHECK([for glibc >= 2.5], [gold_cv_lib_glibc25],
+dnl only with glibc 2.9 or later.
+AC_CACHE_CHECK([for glibc >= 2.9], [gold_cv_lib_glibc29],
[AC_COMPILE_IFELSE([
#include <features.h>
#if !defined __GLIBC__
error
-#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 5)
+#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
error
#endif
-], [gold_cv_lib_glibc25=yes], [gold_cv_lib_glibc25=no])])
+], [gold_cv_lib_glibc29=yes], [gold_cv_lib_glibc29=no])])
-AM_CONDITIONAL(TLS_DESCRIPTORS, test "$gold_cv_lib_glibc25" = "yes")
+AM_CONDITIONAL(TLS_DESCRIPTORS, test "$gold_cv_lib_glibc29" = "yes")
dnl Check whether the compiler supports constructor priorities in
dnl attributes, which were added in gcc 4.3.