This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 6/6] Use PI_STATIC_AND_HIDDEN on sparc if we universallyuse GOTDATA relocs.
- From: David Miller <davem at davemloft dot net>
- To: libc-alpha at sourceware dot org
- Date: Mon, 20 Feb 2012 21:10:01 -0500 (EST)
- Subject: [PATCH 6/6] Use PI_STATIC_AND_HIDDEN on sparc if we universallyuse GOTDATA relocs.
* sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
both binutils and gcc support GOTDATA.
---
ChangeLog | 3 +++
sysdeps/sparc/elf/configure | 6 ++++++
sysdeps/sparc/elf/configure.in | 5 +++++
3 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c125719..5bc4a82 100644
--- 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.
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
--
1.7.6.401.g6a319