aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cris/tls-ldgd-15.d
blob: 32afffa4641d117550d0526c9949cf7c98aeb7fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#source: tls128g.s
#source: tls-ld-7.s
#source: tls-gd-2.s
#source: tls-ldgd-15.s
#source: tls-x.s
#source: tls-z.s
#source: tls-hx1x2.s
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux --hash-style=sysv
#objdump: -s -t -R -p -T

# Check that we have proper NPTL/TLS markings and GOT for two
# R_CRIS_32_GOT_GD and two R_CRIS_32_DTPRELs against different
# variables in a DSO.

.*:     file format elf32-cris

Program Header:
    LOAD off    0x0+ vaddr 0x0+ paddr 0x0+ align 2\*\*13
         filesz 0x0+1d4 memsz 0x0+1d4 flags r-x
    LOAD off    0x0+1d4 vaddr 0x0+21d4 paddr 0x0+21d4 align 2\*\*13
         filesz 0x0+124 memsz 0x0+124 flags rw-
 DYNAMIC off    0x0+264 vaddr 0x0+2264 paddr 0x0+2264 align 2\*\*2
         filesz 0x0+70 memsz 0x0+70 flags rw-
     TLS off    0x0+1d4 vaddr 0x0+21d4 paddr 0x0+21d4 align 2\*\*2
         filesz 0x0+90 memsz 0x0+90 flags r--

Dynamic Section:
  HASH                 0x0+b4
  STRTAB               0x0+168
  SYMTAB               0x0+e8
  STRSZ                0x0+2a
  SYMENT               0x0+10
  RELA                 0x0+194
  RELASZ               0x0+24
  RELAENT              0x0+c
private flags = 0:

SYMBOL TABLE:
#...
0+8c l       \.tdata	0+4 x2
#...
0+88 l       \.tdata	0+4 x1
#...
0+80 g       \.tdata	0+4 x
#...
0+84 g       \.tdata	0+4 z
#...
DYNAMIC SYMBOL TABLE:
#...
0+80 g    D  \.tdata	0+4 x
#...
0+84 g    D  \.tdata	0+4 z
#...

DYNAMIC RELOCATION RECORDS
OFFSET   TYPE              VALUE 
0+22e0 R_CRIS_DTPMOD     \*ABS\*
0+22e8 R_CRIS_DTP        x
0+22f0 R_CRIS_DTP        z

Contents of section \.hash:
#...
Contents of section \.text:
 01b8 6fae8800 00006fbe 8c000000 6fae1400  .*
 01c8 0+ 6fae1c00 0+           .*
Contents of section .tdata:
#...
Contents of section \.got:
 22d4 64220+ 0+ 0+ 0+  .*
 22e4 0+ 0+ 0+ 0+  .*
 22f4 0+                             .*