2002-08-28 22:37:20 +00:00
|
|
|
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
|
|
|
|
# Local configure fragment for sysdeps/ia64/elf.
|
|
|
|
|
2002-11-08 17:11:02 +00:00
|
|
|
# Check for support of thread-local storage handling in assembler and
|
|
|
|
# linker.
|
|
|
|
AC_CACHE_CHECK(for ia64 TLS support, libc_cv_ia64_tls, [dnl
|
|
|
|
cat > conftest.s <<\EOF
|
2011-09-11 19:02:01 +00:00
|
|
|
.section ".tdata","awT",@progbits
|
2002-11-08 17:11:02 +00:00
|
|
|
foo: data8 25
|
2011-09-11 19:02:01 +00:00
|
|
|
.text
|
|
|
|
addl r16 = @ltoff(@dtpmod(foo#)), gp
|
|
|
|
addl r17 = @ltoff(@dtprel(foo#)), gp
|
|
|
|
addl r18 = @ltoff(@tprel(foo#)), gp
|
|
|
|
addl r19 = @dtprel(foo#), gp
|
|
|
|
adds r21 = @dtprel(foo#), r13
|
|
|
|
movl r23 = @dtprel(foo#)
|
|
|
|
addl r20 = @tprel(foo#), gp
|
|
|
|
adds r22 = @tprel(foo#), r13
|
|
|
|
movl r24 = @tprel(foo#)
|
2002-11-08 17:11:02 +00:00
|
|
|
EOF
|
|
|
|
dnl
|
|
|
|
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
|
|
|
|
libc_cv_ia64_tls=yes
|
|
|
|
else
|
|
|
|
libc_cv_ia64_tls=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*])
|
2011-09-11 19:02:01 +00:00
|
|
|
if test $libc_cv_ia64_tls = no; then
|
|
|
|
AC_MSG_ERROR([the assembler must support TLS])
|
2002-11-08 17:11:02 +00:00
|
|
|
fi
|
|
|
|
|
2002-08-28 22:37:20 +00:00
|
|
|
dnl It is always possible to access static and hidden symbols in an
|
|
|
|
dnl position independent way.
|
|
|
|
AC_DEFINE(PI_STATIC_AND_HIDDEN)
|