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