~ubuntu-branches/ubuntu/natty/eglibc/natty-security

« back to all changes in this revision

Viewing changes to ports/sysdeps/hppa/elf/configure

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2009-05-05 09:54:14 UTC
  • Revision ID: james.westby@ubuntu.com-20090505095414-c45qsg9ixjheohru
ImportĀ upstreamĀ versionĀ 2.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This file is generated from configure.in by Autoconf.  DO NOT EDIT!
 
2
 # Local configure fragment for sysdeps/hppa/elf.
 
3
 
 
4
if test "$usetls" != no; then
 
5
# Check for support of thread-local storage handling in assembler and
 
6
# linker.
 
7
{ echo "$as_me:$LINENO: checking for hppa TLS support" >&5
 
8
echo $ECHO_N "checking for hppa TLS support... $ECHO_C" >&6; }
 
9
if test "${libc_cv_hppa_tls+set}" = set; then
 
10
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11
else
 
12
  cat > conftest.s <<\EOF
 
13
; Setup tls data
 
14
.section ".tdata","awT",@progbits
 
15
foo:    .data   32
 
16
        .text
 
17
; Test general dyanmic relocations
 
18
test0:
 
19
        addil   LT'foo-$tls_gdidx$, %r19
 
20
        ldo     RT'foo-$tls_gdidx$(%r1), %r26
 
21
        b       __tls_get_addr
 
22
        nop
 
23
; Test local dynamic relocations
 
24
test1:
 
25
        addil   LT'foo-$tls_ldidx$, %r19
 
26
        b       __tls_get_addr
 
27
        ldo     RT'foo-$tls_ldidx$(%r1), %r26
 
28
        ldo     RR'foo-$tls_dtpoff$(%r1), %r25
 
29
        ; More variables can be loaded...
 
30
; Test initial exec reloctiosn
 
31
test2:
 
32
        mfctl   %cr27, %r26
 
33
        addil   LT'foo-$tls_ieoff$, %r19
 
34
        ldw     RT'foo-$tls_ieoff$(%r1), %r25
 
35
        add     %r26, %r25, %r24
 
36
; Test local exec relocations
 
37
test3:
 
38
        mfctl   %cr27, %r26
 
39
        addil   LR'foo-$tls_leoff$, %r26
 
40
        ldo     RR'foo-$tls_leoff$(%r1), %r25
 
41
; Done all the TLS tests.
 
42
EOF
 
43
if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
 
44
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
45
  (eval $ac_try) 2>&5
 
46
  ac_status=$?
 
47
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
48
  (exit $ac_status); }; }; then
 
49
  libc_cv_hppa_tls=yes
 
50
else
 
51
  libc_cv_hppa_tls=no
 
52
fi
 
53
rm -f conftest*
 
54
fi
 
55
{ echo "$as_me:$LINENO: result: $libc_cv_hppa_tls" >&5
 
56
echo "${ECHO_T}$libc_cv_hppa_tls" >&6; }
 
57
if test $libc_cv_hppa_tls = yes; then
 
58
  cat >>confdefs.h <<\_ACEOF
 
59
#define HAVE_TLS_SUPPORT 1
 
60
_ACEOF
 
61
 
 
62
fi
 
63
fi