]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-powerpc/tlsexetoc.r
PowerPC PLT stub tidy
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-powerpc / tlsexetoc.r
CommitLineData
266fb683
AM
1#source: tlslib.s
2#source: tlstoc.s
3#as: -a64
71a39c98 4#ld:
266fb683
AM
5#readelf: -WSsrl
6#target: powerpc64*-*-*
7
c9ccd0df 8There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+:
266fb683
AM
9
10Section Headers:
11 +\[Nr\] Name +Type +Address +Off +Size +ES Flg Lk Inf Al
c9ccd0df
MF
12 +\[[ 0-9]+\] +NULL +0+ 0+ 0+ 0+ +0 +0 +0
13 +\[[ 0-9]+\] \.interp +.*
14 +\[[ 0-9]+\] \.hash +.*
15 +\[[ 0-9]+\] \.dynsym +.*
16 +\[[ 0-9]+\] \.dynstr +.*
17 +\[[ 0-9]+\] \.rela\.dyn +.*
18 +\[[ 0-9]+\] \.rela\.plt +.*
9e390558 19 +\[[ 0-9]+\] \.text +PROGBITS .* 0+dc 0+ +AX +0 +0 +32
c9ccd0df
MF
20 +\[[ 0-9]+\] \.tdata +PROGBITS .* 0+38 0+ WAT +0 +0 +8
21 +\[[ 0-9]+\] \.tbss +NOBITS .* 0+38 0+ WAT +0 +0 +8
a7f2871e 22 +\[[ 0-9]+\] \.dynamic +DYNAMIC .* 0+160 10 +WA +4 +0 +8
71a39c98 23 +\[[ 0-9]+\] \.opd .*
a27e685f 24 +\[[ 0-9]+\] \.got +PROGBITS .* 0+58 08 +WA +0 +0 +256
c9ccd0df 25 +\[[ 0-9]+\] \.plt +.*
c9ccd0df
MF
26 +\[[ 0-9]+\] \.symtab +.*
27 +\[[ 0-9]+\] \.strtab +.*
dd905818 28 +\[[ 0-9]+\] \.shstrtab +.*
266fb683
AM
29#...
30
31Elf file type is EXEC \(Executable file\)
e7b679eb 32Entry point .*
c9ccd0df 33There are [0-9]+ program headers, starting at offset [0-9]+
266fb683
AM
34
35Program Headers:
36 +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align
f882209d 37 +PHDR +0x0+40 0x0+10000040 0x0+10000040 0x0+150 0x0+150 R +0x8
266fb683
AM
38 +INTERP +0x0+190 0x0+10000190 0x0+10000190 0x0+11 0x0+11 R +0x1
39 +\[Requesting program interpreter: .*\]
85167a84
AM
40 +LOAD .* R E 0x10000
41 +LOAD .* RW +0x10000
42 +DYNAMIC .* RW +0x8
43 +TLS .* 0x0+38 0x0+70 R +0x8
266fb683
AM
44
45 Section to Segment mapping:
46 +Segment Sections\.\.\.
ac8b6cc0 47 +0+ +
71a39c98
AM
48 +01 +\.interp *
49 +02 +\.interp \.hash \.dynsym \.dynstr \.rela\.dyn \.rela\.plt \.text *
50 +03 +\.tdata \.dynamic \.opd \.got \.plt *
51 +04 +\.dynamic *
52 +05 +\.tdata \.tbss *
266fb683 53
d1b46e80 54Relocation section '\.rela\.dyn' at offset .* contains 3 entries:
266fb683 55 +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
d1b46e80
AM
56[0-9a-f ]+R_PPC64_DTPMOD64 +0+ gd \+ 0
57[0-9a-f ]+R_PPC64_DTPREL64 +0+ gd \+ 0
85167a84 58[0-9a-f ]+R_PPC64_DTPMOD64 +0+ ld \+ 0
266fb683 59
d3a49aa8 60Relocation section '\.rela\.plt' at offset .* contains 1 entry:
ac8b6cc0 61 +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
a7f2871e 62[0-9a-f ]+R_PPC64_JMP_SLOT +0+ __tls_get_addr_opt \+ 0
ac8b6cc0 63
85167a84 64Symbol table '\.dynsym' contains [0-9]+ entries:
f9272224 65 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
71a39c98 66.* NOTYPE +LOCAL +DEFAULT +UND *
f9272224
AM
67.* TLS +GLOBAL +DEFAULT +UND gd
68.* TLS +GLOBAL +DEFAULT +UND ld
71a39c98 69.* NOTYPE +GLOBAL +DEFAULT +13 __bss_start
f9272224 70.* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr_opt
23283c1b 71.* NOTYPE +GLOBAL +DEFAULT +13 _edata
71a39c98 72.* NOTYPE +GLOBAL +DEFAULT +13 _end
266fb683 73
c9ccd0df 74Symbol table '\.symtab' contains [0-9]+ entries:
f9272224 75 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
71a39c98
AM
76.* NOTYPE +LOCAL +DEFAULT +UND *
77.* SECTION +LOCAL +DEFAULT +1 *
78.* SECTION +LOCAL +DEFAULT +2 *
79.* SECTION +LOCAL +DEFAULT +3 *
80.* SECTION +LOCAL +DEFAULT +4 *
81.* SECTION +LOCAL +DEFAULT +5 *
82.* SECTION +LOCAL +DEFAULT +6 *
83.* SECTION +LOCAL +DEFAULT +7 *
84.* SECTION +LOCAL +DEFAULT +8 *
85.* SECTION +LOCAL +DEFAULT +9 *
86.* SECTION +LOCAL +DEFAULT +10 *
87.* SECTION +LOCAL +DEFAULT +11 *
88.* SECTION +LOCAL +DEFAULT +12 *
89.* SECTION +LOCAL +DEFAULT +13 *
ffbc01cc 90.* FILE +LOCAL +DEFAULT +ABS .*
e4e0193e
AM
91.* TLS +LOCAL +DEFAULT +8 gd4
92.* TLS +LOCAL +DEFAULT +8 ld4
93.* TLS +LOCAL +DEFAULT +8 ld5
94.* TLS +LOCAL +DEFAULT +8 ld6
95.* TLS +LOCAL +DEFAULT +8 ie4
96.* TLS +LOCAL +DEFAULT +8 le4
97.* TLS +LOCAL +DEFAULT +8 le5
71a39c98 98.* NOTYPE +LOCAL +DEFAULT +12 \.Lie0
49bd1d6e 99.* FILE +LOCAL +DEFAULT +ABS
935bd1e0 100.* OBJECT +LOCAL +DEFAULT +10 _DYNAMIC
d983c8c5
AM
101.* NOTYPE +LOCAL +DEFAULT +7 __glink_PLTresolve
102.* NOTYPE +LOCAL +DEFAULT +7 .*\.plt_call\.__tls_get_addr(|_opt)
f9272224
AM
103.* TLS +GLOBAL +DEFAULT +UND gd
104.* TLS +GLOBAL +DEFAULT +9 le0
105.* TLS +GLOBAL +DEFAULT +9 ld0
106.* TLS +GLOBAL +DEFAULT +9 le1
107.* TLS +GLOBAL +DEFAULT +UND ld
71a39c98 108.* FUNC +GLOBAL +DEFAULT +11 _start
f9272224
AM
109.* TLS +GLOBAL +DEFAULT +9 ld2
110.* TLS +GLOBAL +DEFAULT +9 ld1
71a39c98 111.* NOTYPE +GLOBAL +DEFAULT +13 __bss_start
f9272224 112.* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr_opt
23283c1b 113.* NOTYPE +GLOBAL +DEFAULT +13 _edata
71a39c98 114.* NOTYPE +GLOBAL +DEFAULT +13 _end
f9272224
AM
115.* TLS +GLOBAL +DEFAULT +9 gd0
116.* TLS +GLOBAL +DEFAULT +9 ie0