PowerPC PIC vs. DLL TLS issues
[deliverable/binutils-gdb.git] / ld / testsuite / ld-powerpc / tlsso32.r
CommitLineData
2a050fb5
AM
1#source: tls32.s
2#as: -a32
ed6b7ef4 3#ld: -shared
2a050fb5
AM
4#readelf: -WSsrl
5#target: powerpc*-*-*
6
c9ccd0df 7There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+:
2a050fb5
AM
8
9Section Headers:
10 +\[Nr\] Name +Type +Addr +Off +Size +ES Flg Lk Inf Al
c9ccd0df
MF
11 +\[[ 0-9]+\] +NULL +0+ 0+ 0+ 0+ +0 +0 +0
12 +\[[ 0-9]+\] \.hash +.*
13 +\[[ 0-9]+\] \.dynsym +.*
14 +\[[ 0-9]+\] \.dynstr +.*
15 +\[[ 0-9]+\] \.rela\.dyn +.*
16 +\[[ 0-9]+\] \.rela\.plt +.*
1079403c 17 +\[[ 0-9]+\] \.text +PROGBITS .* 0+d0 0+ +AX +0 +0 +16
c9ccd0df
MF
18 +\[[ 0-9]+\] \.tdata +PROGBITS .* 0+1c 0+ WAT +0 +0 +4
19 +\[[ 0-9]+\] \.tbss +NOBITS .* 0+1c 0+ WAT +0 +0 +4
20 +\[[ 0-9]+\] \.dynamic +DYNAMIC .* 08 +WA +3 +0 +4
f749f26e 21 +\[[ 0-9]+\] \.got +PROGBITS .* 0+40 04 +WA +0 +0 +4
1079403c 22 +\[[ 0-9]+\] \.plt +PROGBITS .* 0+4 00 +WA +0 +0 +4
c9ccd0df
MF
23 +\[[ 0-9]+\] \.symtab +.*
24 +\[[ 0-9]+\] \.strtab +.*
dd905818 25 +\[[ 0-9]+\] \.shstrtab +.*
2a050fb5
AM
26#...
27
28Elf file type is DYN \(Shared object file\)
8c37241b 29Entry point 0x[0-9a-f]+
c9ccd0df 30There are [0-9]+ program headers, starting at offset [0-9]+
2a050fb5
AM
31
32Program Headers:
33 +Type +Offset +VirtAddr +PhysAddr +FileSiz MemSiz +Flg Align
85167a84 34 +LOAD .* R E 0x10000
1079403c 35 +LOAD .* RW +0x10000
85167a84
AM
36 +DYNAMIC .* RW +0x4
37 +TLS .* 0x0+1c 0x0+38 R +0x4
2a050fb5
AM
38
39 Section to Segment mapping:
40 +Segment Sections\.\.\.
41 +0+ +\.hash \.dynsym \.dynstr \.rela\.dyn \.rela\.plt \.text
d72d9b9e 42 +01 +\.tdata \.dynamic \.got \.plt
cbaa0dc5 43 +02 +\.dynamic
2a050fb5
AM
44 +03 +\.tdata \.tbss
45
f749f26e 46Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 20 entries:
2a050fb5 47 Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend
f6ac7612
AM
48[0-9a-f ]+R_PPC_REL24 +0+ +__tls_get_addr \+ 0
49[0-9a-f ]+R_PPC_REL24 +0+ +__tls_get_addr \+ 0
50[0-9a-f ]+R_PPC_REL24 +0+ +__tls_get_addr \+ 0
51[0-9a-f ]+R_PPC_REL24 +0+ +__tls_get_addr \+ 0
52[0-9a-f ]+R_PPC_TPREL16 +0+30 +le0 \+ 0
53[0-9a-f ]+R_PPC_TPREL16_HA +0+34 +le1 \+ 0
54[0-9a-f ]+R_PPC_TPREL16_LO +0+34 +le1 \+ 0
f26a3287
AM
55[0-9a-f ]+R_PPC_TPREL16 +14
56[0-9a-f ]+R_PPC_TPREL16_HA +18
57[0-9a-f ]+R_PPC_TPREL16_LO +18
9920b1ee
L
58[0-9a-f ]+R_PPC_DTPMOD32 +0
59[0-9a-f ]+R_PPC_DTPREL32 +0
60[0-9a-f ]+R_PPC_DTPMOD32 +0
f6ac7612
AM
61[0-9a-f ]+R_PPC_DTPMOD32 +0+ +gd \+ 0
62[0-9a-f ]+R_PPC_DTPREL32 +0+ +gd \+ 0
f749f26e
AM
63[0-9a-f ]+R_PPC_DTPMOD32 +0+20 +ld0 \+ 0
64[0-9a-f ]+R_PPC_DTPMOD32 +0+ +ld \+ 0
f6ac7612
AM
65[0-9a-f ]+R_PPC_DTPMOD32 +0+1c +gd0 \+ 0
66[0-9a-f ]+R_PPC_DTPREL32 +0+1c +gd0 \+ 0
67[0-9a-f ]+R_PPC_TPREL32 +0+2c +ie0 \+ 0
2a050fb5 68
d3a49aa8 69Relocation section '\.rela\.plt' at offset 0x[0-9a-f]+ contains 1 entry:
2a050fb5 70 Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend
f6ac7612 71[0-9a-f ]+R_PPC_JMP_SLOT +0+ +__tls_get_addr \+ 0
2a050fb5 72
85167a84 73Symbol table '\.dynsym' contains [0-9]+ entries:
f9272224 74 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
85167a84 75.* NOTYPE +LOCAL +DEFAULT +UND
f9272224 76.* SECTION +LOCAL +DEFAULT +6
f9272224
AM
77.* TLS +GLOBAL +DEFAULT +UND gd
78.* TLS +GLOBAL +DEFAULT +8 le0
79.* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr
80.* TLS +GLOBAL +DEFAULT +8 ld0
81.* TLS +GLOBAL +DEFAULT +8 le1
82.* TLS +GLOBAL +DEFAULT +UND ld
83.* NOTYPE +GLOBAL +DEFAULT +6 _start
f9272224
AM
84.* TLS +GLOBAL +DEFAULT +8 ld2
85.* TLS +GLOBAL +DEFAULT +8 ld1
f9272224
AM
86.* TLS +GLOBAL +DEFAULT +8 gd0
87.* TLS +GLOBAL +DEFAULT +8 ie0
2a050fb5 88
c9ccd0df 89Symbol table '\.symtab' contains [0-9]+ entries:
f9272224 90 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
85167a84 91.* NOTYPE +LOCAL +DEFAULT +UND
f9272224
AM
92.* SECTION +LOCAL +DEFAULT +1
93.* SECTION +LOCAL +DEFAULT +2
94.* SECTION +LOCAL +DEFAULT +3
95.* SECTION +LOCAL +DEFAULT +4
96.* SECTION +LOCAL +DEFAULT +5
97.* SECTION +LOCAL +DEFAULT +6
98.* SECTION +LOCAL +DEFAULT +7
99.* SECTION +LOCAL +DEFAULT +8
100.* SECTION +LOCAL +DEFAULT +9
101.* SECTION +LOCAL +DEFAULT +10
102.* SECTION +LOCAL +DEFAULT +11
ffbc01cc 103.* FILE +LOCAL +DEFAULT +ABS .*
85167a84
AM
104.* TLS +LOCAL +DEFAULT +7 gd4
105.* TLS +LOCAL +DEFAULT +7 ld4
106.* TLS +LOCAL +DEFAULT +7 ld5
107.* TLS +LOCAL +DEFAULT +7 ld6
108.* TLS +LOCAL +DEFAULT +7 ie4
109.* TLS +LOCAL +DEFAULT +7 le4
110.* TLS +LOCAL +DEFAULT +7 le5
ffbc01cc 111.* FILE +LOCAL +DEFAULT +ABS .*
ab6dce23 112.* OBJECT +LOCAL +DEFAULT +9 _DYNAMIC
1079403c
AM
113.* NOTYPE +LOCAL +DEFAULT +6 0+8000\.got2\.plt_pic32\.__tls_get_addr
114.* NOTYPE +LOCAL +DEFAULT +6 __glink_PLTresolve
115.* NOTYPE +LOCAL +DEFAULT +6 __glink
ab6dce23 116.* OBJECT +LOCAL +DEFAULT +10 _GLOBAL_OFFSET_TABLE_
f9272224
AM
117.* TLS +GLOBAL +DEFAULT +UND gd
118.* TLS +GLOBAL +DEFAULT +8 le0
119.* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr
120.* TLS +GLOBAL +DEFAULT +8 ld0
121.* TLS +GLOBAL +DEFAULT +8 le1
122.* TLS +GLOBAL +DEFAULT +UND ld
123.* NOTYPE +GLOBAL +DEFAULT +6 _start
f9272224
AM
124.* TLS +GLOBAL +DEFAULT +8 ld2
125.* TLS +GLOBAL +DEFAULT +8 ld1
f9272224
AM
126.* TLS +GLOBAL +DEFAULT +8 gd0
127.* TLS +GLOBAL +DEFAULT +8 ie0
This page took 0.786418 seconds and 4 git commands to generate.