]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-powerpc/tlsexenors.r
PowerPC: Don't generate unused section symbols
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-powerpc / tlsexenors.r
CommitLineData
9e7028aa
AM
1#source: tls.s
2#source: tlslib.s
3#as: -a64
4#ld: --no-tls-optimize
5#readelf: -WSsrl
6#target: powerpc64*-*-*
7
8There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+:
9
10Section Headers:
11 +\[Nr\] Name +Type +Address +Off +Size +ES Flg Lk Inf Al
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 +.*
19 +\[[ 0-9]+\] \.text +PROGBITS .* 0+164 0+ +AX +0 +0 +32
20 +\[[ 0-9]+\] \.tdata +PROGBITS .* 0+38 0+ WAT +0 +0 +8
21 +\[[ 0-9]+\] \.tbss +NOBITS .* 0+38 0+ WAT +0 +0 +8
22 +\[[ 0-9]+\] \.dynamic +DYNAMIC .* 0+160 10 +WA +4 +0 +8
23 +\[[ 0-9]+\] \.opd .*
24 +\[[ 0-9]+\] \.got +PROGBITS .* 0+70 08 +WA +0 +0 +256
25 +\[[ 0-9]+\] \.plt +.*
26 +\[[ 0-9]+\] \.symtab +.*
27 +\[[ 0-9]+\] \.strtab +.*
28 +\[[ 0-9]+\] \.shstrtab +.*
29#...
30
31Elf file type is EXEC \(Executable file\)
32Entry point .*
33There are [0-9]+ program headers, starting at offset [0-9]+
34
35Program Headers:
36 +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align
37 +PHDR +0x0+40 0x0+10000040 0x0+10000040 0x0+150 0x0+150 R +0x8
38 +INTERP +0x0+190 0x0+10000190 0x0+10000190 0x0+11 0x0+11 R +0x1
39 +\[Requesting program interpreter: .*\]
40 +LOAD .* R E 0x10000
41 +LOAD .* RW +0x10000
42 +DYNAMIC .* RW +0x8
43 +TLS .* 0x0+38 0x0+70 R +0x8
44
45 Section to Segment mapping:
46 +Segment Sections\.\.\.
47 +0+ +
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 *
53
54Relocation section '\.rela\.dyn' at offset .* contains 3 entries:
55 +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
56[0-9a-f ]+R_PPC64_DTPMOD64 +0+ gd \+ 0
57[0-9a-f ]+R_PPC64_DTPREL64 +0+ gd \+ 0
58[0-9a-f ]+R_PPC64_DTPMOD64 +0+ ld \+ 0
59
60Relocation section '\.rela\.plt' at offset .* contains 1 entry:
61 +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
62[0-9a-f ]+R_PPC64_JMP_SLOT +0+ __tls_get_addr_opt \+ 0
63
64Symbol table '\.dynsym' contains [0-9]+ entries:
65 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
66.* NOTYPE +LOCAL +DEFAULT +UND *
67.* TLS +GLOBAL +DEFAULT +UND gd
68.* TLS +GLOBAL +DEFAULT +UND ld
69.* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr_opt
70
71Symbol table '\.symtab' contains [0-9]+ entries:
72 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
73.* 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND *
9e7028aa
AM
74.* FILE +LOCAL +DEFAULT +ABS .*
75.* NOTYPE +LOCAL +DEFAULT +ABS TLSMARK
76.* TLS +LOCAL +DEFAULT +8 gd4
77.* TLS +LOCAL +DEFAULT +8 ld4
78.* TLS +LOCAL +DEFAULT +8 ld5
79.* TLS +LOCAL +DEFAULT +8 ld6
80.* TLS +LOCAL +DEFAULT +8 ie4
81.* TLS +LOCAL +DEFAULT +8 le4
82.* TLS +LOCAL +DEFAULT +8 le5
83.* FILE +LOCAL +DEFAULT +ABS
84.* OBJECT +LOCAL +DEFAULT +10 _DYNAMIC
85.* NOTYPE +LOCAL +DEFAULT +7 __glink_PLTresolve
86.* NOTYPE +LOCAL +DEFAULT +7 .*\.plt_call\.__tls_get_addr(|_opt)
87.* GLOBAL +DEFAULT +UND gd
88.* GLOBAL +DEFAULT +9 le0
89.* GLOBAL +DEFAULT +9 ld0
90.* GLOBAL +DEFAULT +9 le1
91.* GLOBAL +DEFAULT +UND ld
92.* FUNC +GLOBAL +DEFAULT +11 _start
93.* TLS +GLOBAL +DEFAULT +9 ld2
94.* TLS +GLOBAL +DEFAULT +9 ld1
95.* NOTYPE +GLOBAL +DEFAULT +13 __bss_start
96.* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr_opt
97.* NOTYPE +GLOBAL +DEFAULT +13 _edata
98.* NOTYPE +GLOBAL +DEFAULT +13 _end
99.* TLS +GLOBAL +DEFAULT +9 gd0
100.* TLS +GLOBAL +DEFAULT +9 ie0