mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
098a657fe4
PI_STATIC_AND_HIDDEN indicates whether accesses to internal linkage variables and hidden visibility variables in a shared object (ld.so) need dynamic relocations (usually R_*_RELATIVE). PI (position independent) in the macro name is a misnomer: a code sequence using GOT is typically position-independent as well, but using dynamic relocations does not meet the requirement. Not defining PI_STATIC_AND_HIDDEN is legacy and we expect that all new ports will define PI_STATIC_AND_HIDDEN. Current ports defining PI_STATIC_AND_HIDDEN are more than the opposite. Change the configure default. No functional change. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
16 lines
539 B
Plaintext
16 lines
539 B
Plaintext
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
|
|
# Local configure fragment for sysdeps/mips.
|
|
|
|
dnl No MIPS GCC supports accessing static and hidden symbols in an
|
|
dnl position independent way.
|
|
AC_DEFINE(HIDDEN_VAR_NEEDS_DYNAMIC_RELOC)
|
|
|
|
AC_CACHE_CHECK([whether the compiler is using the 2008 NaN encoding],
|
|
libc_cv_mips_nan2008, [AC_EGREP_CPP(yes, [dnl
|
|
#ifdef __mips_nan2008
|
|
yes
|
|
#endif], libc_cv_mips_nan2008=yes, libc_cv_mips_nan2008=no)])
|
|
if test x$libc_cv_mips_nan2008 = xyes; then
|
|
AC_DEFINE(HAVE_MIPS_NAN2008)
|
|
fi
|