1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local configure fragment for sysdeps/ia64/elf.
4 if test "$usetls" != no; then
5 # Check for support of thread-local storage handling in assembler and
7 AC_CACHE_CHECK(for ia64 TLS support, libc_cv_ia64_tls, [dnl
8 cat > conftest.s <<\EOF
9 .section ".tdata","awT",@progbits
12 addl r16 = @ltoff(@dtpmod(foo#)), gp
13 addl r17 = @ltoff(@dtprel(foo#)), gp
14 addl r18 = @ltoff(@tprel(foo#)), gp
15 addl r19 = @dtprel(foo#), gp
16 adds r21 = @dtprel(foo#), r13
17 movl r23 = @dtprel(foo#)
18 addl r20 = @tprel(foo#), gp
19 adds r22 = @tprel(foo#), r13
20 movl r24 = @tprel(foo#)
23 if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
29 if test $libc_cv_ia64_tls = yes; then
30 AC_DEFINE(HAVE_TLS_SUPPORT)
34 dnl It is always possible to access static and hidden symbols in an
35 dnl position independent way.
36 AC_DEFINE(PI_STATIC_AND_HIDDEN)