Skip to content

Commit

Permalink
Use PI_STATIC_AND_HIDDEN on sparc if we universally use GOTDATA relocs.
Browse files Browse the repository at this point in the history
	* sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
	both binutils and gcc support GOTDATA.
  • Loading branch information
David S. Miller committed Feb 21, 2012
1 parent 0722d7c commit d510c12
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
6 changes: 6 additions & 0 deletions sysdeps/sparc/elf/configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions sysdeps/sparc/elf/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d510c12

Please sign in to comment.