Upload Tizen:Base source
[external/binutils.git] / ld / testsuite / ld-cris / tls-e-20.d
1 #source: start1.s
2 #source: tls-gd-2.s --pic
3 #source: tls-hx.s
4 #source: tls-ld-6.s --pic
5 #source: tls-ie-10.s --pic
6 #source: tls-hx1x2.s --pic
7 #as: --no-underscore --em=criself -I$srcdir/$subdir
8 #ld: -m crislinux
9 #objdump: -d -s -h -t -r -p
10
11 # Check that we have proper NPTL/TLS markings and GOT for an
12 # executable with a R_CRIS_32_GOT_GD, a R_CRIS_DTPREL and a
13 # R_CRIS_32_GOT_TPREL.
14
15 .*:     file format elf32-cris
16
17 Program Header:
18     LOAD off    0x0+ vaddr 0x0+80000 paddr 0x0+80000 align 2\*\*13
19          filesz 0x0+b0 memsz 0x0+b0 flags r-x
20     LOAD off    0x0+b0 vaddr 0x0+820b0 paddr 0x0+820b0 align 2\*\*13
21          filesz 0x0+2c memsz 0x0+2c flags rw-
22      TLS off    0x0+b0 vaddr 0x0+820b0 paddr 0x0+820b0 align 2\*\*2
23          filesz 0x0+c memsz 0x0+c flags r--
24 private flags = 0:
25
26 Sections:
27 Idx Name          Size      VMA       LMA       File off  Algn
28   0 \.text         0000001c  00080094  00080094  00000094  2\*\*1
29                   CONTENTS, ALLOC, LOAD, READONLY, CODE
30   1 \.tdata        0000000c  000820b0  000820b0  000000b0  2\*\*2
31                   CONTENTS, ALLOC, LOAD, DATA, THREAD_LOCAL
32   2 \.got          00000020  000820bc  000820bc  000000bc  2\*\*2
33                   CONTENTS, ALLOC, LOAD, DATA
34 SYMBOL TABLE:
35 0+80094 l    d  \.text  0+ \.text
36 0+820b0 l    d  \.tdata 0+ \.tdata
37 0+820bc l    d  \.got   0+ \.got
38 0+820bc l     O \.got   0+ _GLOBAL_OFFSET_TABLE_
39 0+ g       \.tdata      0+4 \.hidden x
40 0+80098 g     F \.text  0+6 tlsdsofn2
41 0+8 g       \.tdata     0+4 \.hidden x2
42 0+80094 g       \.text  0+ _start
43 0+820dc g       \*ABS\* 0+ __bss_start
44 0+800a0 g     F \.text  0+6 tlsdsofn
45 0+4 g       \.tdata     0+4 \.hidden x1
46 0+820dc g       \*ABS\* 0+ _edata
47 0+820e0 g       \*ABS\* 0+ _end
48 0+800a8 g     F \.text  0+6 tlsdsofn10
49
50 Contents of section \.text:
51 #...
52 Contents of section \.tdata:
53  820b0 28000000 29000000 2a000000           .*
54 Contents of section \.got:
55  820bc 00000000 00000000 00000000 01000000  .*
56  820cc 00000000 f4ffffff 01000000 00000000  .*
57
58 Disassembly of section \.text:
59
60 00080094 <_start>:
61    80094:       41b2                    moveq 1,\$r11
62 #...
63 00080098 <tlsdsofn2>:
64    80098:       6fae 1800 0000          move\.d 18 <x2\+0x10>,\$r10
65 #...
66 000800a0 <tlsdsofn>:
67    800a0:       6fae 0000 0000          move\.d 0 <x>,\$r10
68 #...
69 000800a8 <tlsdsofn10>:
70    800a8:       6fae 1400 0000          move\.d 14 <x2\+0xc>,\$r10
71 #...