about summary refs log tree commit diff
path: root/sysdeps/sparc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-02-20 17:47:27 -0800
committerDavid S. Miller <davem@davemloft.net>2012-02-20 17:52:07 -0800
commitd510c12326901bb3725a7e5a3b7602a3e266be56 (patch)
tree5f16e221048663c10effa074b833ac975904a9c1 /sysdeps/sparc
parent0722d7c2ac52b343e895b0726fd08ec8e9677c04 (diff)
downloadglibc-d510c12326901bb3725a7e5a3b7602a3e266be56.tar.gz
glibc-d510c12326901bb3725a7e5a3b7602a3e266be56.tar.xz
glibc-d510c12326901bb3725a7e5a3b7602a3e266be56.zip
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.
Diffstat (limited to 'sysdeps/sparc')
-rw-r--r--sysdeps/sparc/elf/configure6
-rw-r--r--sysdeps/sparc/elf/configure.in5
2 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/sparc/elf/configure b/sysdeps/sparc/elf/configure
index 67a40398c7..a2545403ef 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 ab8b189a7f..1a2f61a90c 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