1#source: start1.s
2#source: tls128.s
3#source: tls-ld-5.s
4#source: tls-gd-1.s
5#source: tls-ldgd-14.s
6#source: tls-x.s
7#source: tls-z.s
8#source: tls-hx1x2.s
9#as: --pic --no-underscore --em=criself
10#ld: -m crislinux
11#objdump: -d -s -h -t -r -p
12
13# Check that we have proper NPTL/TLS markings and GOT for two
14# R_CRIS_16_GOT_GD and two R_CRIS_16_DTPRELs against different
15# variables, for an executable.
16
17.*:     file format elf32-cris
18
19Program Header:
20#...
21     TLS off    0x0+a8 vaddr 0x0+820a8 paddr 0x0+820a8 align 2\*\*2
22         filesz 0x0+90 memsz 0x0+90 flags r--
23private flags = 0:
24#...
25  1 .tdata .*
26                  CONTENTS.*
27  2 .got .*
28                  CONTENTS.*
29SYMBOL TABLE:
30#...
310+80 g       \.tdata	0+4 x
32#...
330+8c g       .tdata	00000004 \.hidden x2
34#...
350+84 g       \.tdata	0+4 z
36#...
370+88 g       .tdata	00000004 \.hidden x1
38#...
39Contents of section \.text:
40#...
41Contents of section \.tdata:
42#...
43Contents of section \.got:
44 82138 00000000 00000000 00000000 01000000  .*
45 82148 00000000 01000000 80000000 01000000  .*
46 82158 84000000   .*
47
48Disassembly of section \.text:
49
5000080094 <_start>:
51   80094:	41b2                	moveq 1,\$r11
52#...
5300080098 <tlsdsofn>:
54   80098:	5fae 8800           	move\.w 0x88,\$r10
55   8009c:	5fbe 8c00           	move\.w 0x8c,\$r11
56
57000800a0 <tlsdsofn0>:
58   800a0:	5fae 1400           	move\.w 0x14,\$r10
59
60000800a4 <tlsdsofn14>:
61   800a4:	5fae 1c00           	move\.w 0x1c,\$r10
62