diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2019-02-27 13:21:46 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2019-02-27 13:21:55 -0800 |
commit | 92ad88fe72194ccb72a5f34fa3c76078bfc89400 (patch) | |
tree | 0efb813db9d768886d738866816bc716bbb604aa /configure | |
parent | 6bd4d02ee997f5b073583c5d8638ffdefedb13bc (diff) | |
download | glibc-92ad88fe72194ccb72a5f34fa3c76078bfc89400.tar.gz glibc-92ad88fe72194ccb72a5f34fa3c76078bfc89400.tar.xz glibc-92ad88fe72194ccb72a5f34fa3c76078bfc89400.zip |
elf/Makefile: Run IFUNC tests if binutils supports IFUNC
We should run IFUNC tests with --disable-multi-arch if the toolchain supports IFUNCs. For correctness, --disable-multi-arch must not remove IFUNC support from the loader. Tested on x86-64, x32 and i686 with and without --disable-multi-arch. * configure.ac (have-ifunc): New LIBC_CONFIG_VAR. * configure: Regenerated. * elf/Makefile: Run IFUNC tests if binutils supports IFUNC. Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure index 2643db9fb7..c773c487b5 100755 --- a/configure +++ b/configure @@ -6794,6 +6794,8 @@ if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then $as_echo "#define HAVE_IFUNC 1" >>confdefs.h fi +config_vars="$config_vars +have-ifunc = $libc_cv_ld_gnu_indirect_function" if test x"$libc_cv_gcc_indirect_function" = xyes; then $as_echo "#define HAVE_GCC_IFUNC 1" >>confdefs.h |