• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #source: start1.s
2 #source: tls128.s
3 #source: tls-le-13s.s
4 #source: tls-gd-2.s --pic
5 #source: tls-ldgd-14.s --pic
6 #source: tls-x.s
7 #source: tls-z.s
8 #source: tls-x1x2.s
9 #as: --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 an
14 # executable with two R_CRIS_16_TPREL a R_CRIS_32_GOT_GD and a
15 # R_CRIS_16_GOT_GD, different symbols.
16 
17 .*:     file format elf32-cris
18 
19 Program Header:
20 #...
21      TLS off    0x0+ac vaddr 0x0+820ac paddr 0x0+820ac align 2\*\*2
22          filesz 0x0+90 memsz 0x0+90 flags r--
23 private flags = 0:
24 
25 #...
26   2 .got .*
27                   CONTENTS.*
28 SYMBOL TABLE:
29 #...
30 0+80 g       \.tdata	0+4 x
31 #...
32 0+8c g       \.tdata	0+4 x2
33 #...
34 0+84 g       \.tdata	0+4 z
35 #...
36 0+88 g       \.tdata	0+4 x1
37 #...
38 Contents of section \.text:
39 #...
40 Contents of section \.got:
41  8213c 0+ 0+ 0+ 010+  .*
42  8214c 80+ 010+ 840+   .*
43 
44 Disassembly of section \.text:
45 
46 00080094 <_start>:
47    80094:	41b2                	moveq 1,\$r11
48 #...
49 00080098 <tlsfn13>:
50    80098:	5fae f8ff           	move.w 0xfff8,\$r10
51    8009c:	5fae fcff           	move.w 0xfffc,\$r10
52 
53 000800a0 <tlsdsofn2>:
54    800a0:	6fae 0c00 0000      	move.d c <tls128\+0xc>,\$r10
55 #...
56 
57 000800a8 <tlsdsofn14>:
58    800a8:	5fae 1400           	move.w 0x14,\$r10
59