[PATCH] Check for gnu_indirect_function support in the toolchain building gold
Simon Baldwin
simonb@google.com
Tue Mar 1 18:06:00 GMT 2011
More information about the Binutils mailing list
Tue Mar 1 18:06:00 GMT 2011
- Previous message (by thread): Fix assembly of Thumb pcrel LDRs against global symbols
- Next message (by thread): [PATCH] Check for gnu_indirect_function support in the toolchain building gold
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Check for gnu_indirect_function support in the toolchain building gold. Selected gold tests require gnu_indirect_function support. Gold currently checks for glibc 2.11 or later, and assumes if present that this feature is available. However, the "as" associated with the compiler being used to build gold must also support gnu_indirect_function in order for the gold tests to build successfully. This patch enhances the current check for gnu_indirect_function to include the toolchain building gold. ChangeLog gold/ 2011-03-01 Simon Baldwin <simonb@google.com> * configure.ac: Add check for gnu_indirect_function support in the toolchain building binutils. * configure: Rebuild. Index: gold/configure =================================================================== RCS file: /cvs/src/src/gold/configure,v retrieving revision 1.63 diff -u -r1.63 configure --- gold/configure 23 Nov 2010 13:39:56 -0000 1.63 +++ gold/configure 1 Mar 2011 17:53:12 -0000 @@ -6384,6 +6384,7 @@ #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11) error #endif +__asm__(".type foo, %gnu_indirect_function"); _ACEOF if ac_fn_c_try_compile "$LINENO"; then : Index: gold/configure.ac =================================================================== RCS file: /cvs/src/src/gold/configure.ac,v retrieving revision 1.60 diff -u -r1.60 configure.ac --- gold/configure.ac 23 Nov 2010 13:39:56 -0000 1.60 +++ gold/configure.ac 1 Mar 2011 17:53:12 -0000 @@ -369,7 +369,7 @@ AC_SUBST(RANDOM_SEED_CFLAGS) dnl On GNU/Linux ifunc is supported by the dynamic linker in glibc -dnl 2.11 or later. +dnl 2.11 or later, and by binutils 2.20.1 or later. AC_CACHE_CHECK([for glibc >= 2.11], [gold_cv_lib_glibc2_11], [AC_COMPILE_IFELSE([ #include <features.h> @@ -378,6 +378,7 @@ #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11) error #endif +__asm__(".type foo, %gnu_indirect_function"); ], [gold_cv_lib_glibc2_11=yes], [gold_cv_lib_glibc2_11=no])]) AM_CONDITIONAL(IFUNC, test "$gold_cv_lib_glibc2_11" = "yes")
- Previous message (by thread): Fix assembly of Thumb pcrel LDRs against global symbols
- Next message (by thread): [PATCH] Check for gnu_indirect_function support in the toolchain building gold
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list