mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
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.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2012-02-20 David S. Miller <davem@davemloft.net>
|
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
|
* sysdeps/unix/sparc/sysdep.h: Document why we don't use
|
||||||
"rd %pc" in the PIC register setup sequences.
|
"rd %pc" in the PIC register setup sequences.
|
||||||
|
|
||||||
|
6
sysdeps/sparc/elf/configure
vendored
6
sysdeps/sparc/elf/configure
vendored
@ -209,3 +209,9 @@ if test $libc_cv_sparc_gcc_gotdata = yes; then
|
|||||||
$as_echo "#define HAVE_GCC_GOTDATA 1" >>confdefs.h
|
$as_echo "#define HAVE_GCC_GOTDATA 1" >>confdefs.h
|
||||||
|
|
||||||
fi
|
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
|
||||||
|
@ -98,3 +98,8 @@ rm -f conftest*])
|
|||||||
if test $libc_cv_sparc_gcc_gotdata = yes; then
|
if test $libc_cv_sparc_gcc_gotdata = yes; then
|
||||||
AC_DEFINE(HAVE_GCC_GOTDATA)
|
AC_DEFINE(HAVE_GCC_GOTDATA)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test $libc_cv_sparc_gcc_gotdata = yes \
|
||||||
|
&& test $libc_cv_sparc_gotdata = yes; then
|
||||||
|
AC_DEFINE(PI_STATIC_AND_HIDDEN)
|
||||||
|
fi
|
||||||
|
Reference in New Issue
Block a user