From: David S. Miller Date: Tue, 21 Feb 2012 01:47:27 +0000 (-0800) Subject: Use PI_STATIC_AND_HIDDEN on sparc if we universally use GOTDATA relocs. X-Git-Tag: glibc-2.16-tps~962 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d510c12326901bb3725a7e5a3b7602a3e266be56;p=thirdparty%2Fglibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index c12571959a1..5bc4a82c567 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2012-02-20 David S. Miller + * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if + both binutils and gcc support GOTDATA. + * sysdeps/unix/sparc/sysdep.h: Document why we don't use "rd %pc" in the PIC register setup sequences. diff --git a/sysdeps/sparc/elf/configure b/sysdeps/sparc/elf/configure index 67a40398c7b..a2545403ef3 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 ab8b189a7fe..1a2f61a90c9 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