From d510c12326901bb3725a7e5a3b7602a3e266be56 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Mon, 20 Feb 2012 17:47:27 -0800 Subject: Use PI_STATIC_AND_HIDDEN on sparc if we universally use GOTDATA relocs. * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if both binutils and gcc support GOTDATA. --- sysdeps/sparc/elf/configure | 6 ++++++ sysdeps/sparc/elf/configure.in | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'sysdeps/sparc') diff --git a/sysdeps/sparc/elf/configure b/sysdeps/sparc/elf/configure index 67a4039..a254540 100644 --- a/sysdeps/sparc/elf/configure +++ b/sysdeps/sparc/elf/configure @@ -209,3 +209,9 @@ if test $libc_cv_sparc_gcc_gotdata = yes; then $as_echo "#define HAVE_GCC_GOTDATA 1" >>confdefs.h fi + +if test $libc_cv_sparc_gcc_gotdata = yes \ + && test $libc_cv_sparc_gotdata = yes; then + $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h + +fi diff --git a/sysdeps/sparc/elf/configure.in b/sysdeps/sparc/elf/configure.in index ab8b189..1a2f61a 100644 --- a/sysdeps/sparc/elf/configure.in +++ b/sysdeps/sparc/elf/configure.in @@ -98,3 +98,8 @@ rm -f conftest*]) if test $libc_cv_sparc_gcc_gotdata = yes; then AC_DEFINE(HAVE_GCC_GOTDATA) fi + +if test $libc_cv_sparc_gcc_gotdata = yes \ + && test $libc_cv_sparc_gotdata = yes; then + AC_DEFINE(PI_STATIC_AND_HIDDEN) +fi -- cgit v1.1