]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use PI_STATIC_AND_HIDDEN on sparc if we universally use GOTDATA relocs.
authorDavid S. Miller <davem@davemloft.net>
Tue, 21 Feb 2012 01:47:27 +0000 (17:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Feb 2012 01:52:07 +0000 (17:52 -0800)
* sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
both binutils and gcc support GOTDATA.

ChangeLog
sysdeps/sparc/elf/configure
sysdeps/sparc/elf/configure.in

index c12571959a12bca10956d3fcdc5d610679a466fa..5bc4a82c567e946e95bf53c7e6d68c9fe3db724b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-02-20  David S. Miller  <davem@davemloft.net>
 
+       * 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.
 
index 67a40398c7bf4713b89de78b7246ffb492bca786..a2545403ef36af618956f9514fd7af7fadcc7d6e 100644 (file)
@@ -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
index ab8b189a7fe6f29e4319062f8161605ee1aaa3fc..1a2f61a90c965e94236401bc5d52c9332d8c474d 100644 (file)
@@ -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