]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-x86-64/tlspic2.rd
ELF: Don't generate unused section symbols
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-x86-64 / tlspic2.rd
CommitLineData
e2cbcd91
L
1#source: tlspic3.s
2#source: tlspic2.s
3#as: --64
4#ld: -shared -melf_x86_64 --no-ld-generated-unwind-info
5#readelf: -WSsrl
6#target: x86_64-*-*
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+ 00 +0 +0 +0
13 +\[[ 0-9]+\] .hash +.*
14 +\[[ 0-9]+\] .dynsym +.*
15 +\[[ 0-9]+\] .dynstr +.*
16 +\[[ 0-9]+\] .rela.dyn +.*
17 +\[[ 0-9]+\] .plt +.*
18 +\[[ 0-9]+\] .plt.got +.*
19 +\[[ 0-9]+\] .text +PROGBITS +0+1000 0+1000 0+31a 00 +AX +0 +0 4096
20 +\[[ 0-9]+\] .tdata +PROGBITS +0+20131a 0+131a 0+60 00 WAT +0 +0 +1
21 +\[[ 0-9]+\] .tbss +NOBITS +0+20137a 0+137a 0+20 00 WAT +0 +0 +1
22 +\[[ 0-9]+\] .dynamic +DYNAMIC +0+201380 0+1380 0+100 10 +WA +3 +0 +8
23 +\[[ 0-9]+\] .got +PROGBITS +0+201480 0+1480 0+98 08 +WA +0 +0 +8
24 +\[[ 0-9]+\] .got.plt +PROGBITS +0+201518 0+1518 0+18 08 +WA +0 +0 +8
e2cbcd91
L
25 +\[[ 0-9]+\] .symtab +.*
26 +\[[ 0-9]+\] .strtab +.*
dd905818 27 +\[[ 0-9]+\] .shstrtab +.*
e2cbcd91
L
28Key to Flags:
29#...
30
31Elf file type is DYN \(Shared object file\)
32Entry point 0x1000
33There are [0-9]+ program headers, starting at offset [0-9]+
34
35Program Headers:
36 +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align
37 +LOAD +0x0+ 0x0+ 0x0+ 0x[0-9a-f]+ 0x[0-9a-f]+ R E 0x200000
38 +LOAD +0x0+131a 0x0+20131a 0x0+20131a 0x0+216 0x0+216 RW +0x200000
39 +DYNAMIC +0x0+1380 0x0+201380 0x0+201380 0x0+100 0x0+100 RW +0x8
40 +TLS +0x0+131a 0x0+20131a 0x0+20131a 0x0+60 0x0+80 R +0x1
41
42 Section to Segment mapping:
43 +Segment Sections...
44 +00 +.hash .dynsym .dynstr .rela.dyn .plt .plt.got .text *
45 +01 +.tdata .dynamic .got .got.plt *
46 +02 +.dynamic *
47 +03 +.tdata .tbss *
48
49Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 15 entries:
50 +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
51[0-9a-f ]+R_X86_64_DTPMOD64 +0
52[0-9a-f ]+R_X86_64_TPOFF64 +24
53[0-9a-f ]+R_X86_64_TPOFF64 +30
54[0-9a-f ]+R_X86_64_DTPMOD64 +0
55[0-9a-f ]+R_X86_64_DTPMOD64 +0
56[0-9a-f ]+R_X86_64_TPOFF64 +64
57[0-9a-f ]+R_X86_64_TPOFF64 +50
58[0-9a-f ]+R_X86_64_TPOFF64 +70
59[0-9a-f ]+R_X86_64_DTPMOD64 +0
60[0-9a-f ]+R_X86_64_TPOFF64 +44
61[0-9a-f ]+R_X86_64_TPOFF64 +0+10 sg5 \+ 0
62[0-9a-f ]+R_X86_64_GLOB_DAT +0+ __tls_get_addr \+ 0
63[0-9a-f ]+R_X86_64_DTPMOD64 +0+ sg1 \+ 0
64[0-9a-f ]+R_X86_64_DTPOFF64 +0+ sg1 \+ 0
65[0-9a-f ]+R_X86_64_TPOFF64 +0+4 sg2 \+ 0
66
67Symbol table '\.dynsym' contains [0-9]+ entries:
68 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
69.* NOTYPE +LOCAL +DEFAULT +UND *
70.* TLS +GLOBAL +DEFAULT +8 sg8
71.* TLS +GLOBAL +DEFAULT +8 sg3
72.* TLS +GLOBAL +DEFAULT +8 sg4
73.* TLS +GLOBAL +DEFAULT +8 sg5
74.* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr
75.* TLS +GLOBAL +DEFAULT +8 sg1
76.* FUNC +GLOBAL +DEFAULT +7 fn1
e2cbcd91
L
77.* TLS +GLOBAL +DEFAULT +8 sg2
78.* TLS +GLOBAL +DEFAULT +8 sg6
79.* TLS +GLOBAL +DEFAULT +8 sg7
e2cbcd91
L
80
81Symbol table '\.symtab' contains [0-9]+ entries:
82 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
83.* NOTYPE +LOCAL +DEFAULT +UND *
5b4293ba 84.* FILE +LOCAL +DEFAULT +ABS .*tlspic3.o
e2cbcd91
L
85.* TLS +LOCAL +DEFAULT +8 sl1
86.* TLS +LOCAL +DEFAULT +8 sl2
87.* TLS +LOCAL +DEFAULT +8 sl3
88.* TLS +LOCAL +DEFAULT +8 sl4
89.* TLS +LOCAL +DEFAULT +8 sl5
90.* TLS +LOCAL +DEFAULT +8 sl6
91.* TLS +LOCAL +DEFAULT +8 sl7
92.* TLS +LOCAL +DEFAULT +8 sl8
93.* FILE +LOCAL +DEFAULT +ABS
94.* TLS +LOCAL +DEFAULT +9 sH1
95.* OBJECT +LOCAL +DEFAULT +10 _DYNAMIC
96.* TLS +LOCAL +DEFAULT +8 sh3
97.* TLS +LOCAL +DEFAULT +9 sH2
98.* TLS +LOCAL +DEFAULT +9 sH7
99.* TLS +LOCAL +DEFAULT +8 sh7
100.* TLS +LOCAL +DEFAULT +8 sh8
101.* TLS +LOCAL +DEFAULT +9 sH4
102.* TLS +LOCAL +DEFAULT +8 sh4
103.* TLS +LOCAL +DEFAULT +9 sH3
104.* TLS +LOCAL +DEFAULT +8 sh5
105.* TLS +LOCAL +DEFAULT +9 sH5
106.* TLS +LOCAL +DEFAULT +9 sH6
107.* TLS +LOCAL +DEFAULT +9 sH8
108.* TLS +LOCAL +DEFAULT +8 sh1
109.* OBJECT +LOCAL +DEFAULT +12 _GLOBAL_OFFSET_TABLE_
110.* TLS +LOCAL +DEFAULT +8 sh2
111.* TLS +LOCAL +DEFAULT +8 sh6
112.* TLS +GLOBAL +DEFAULT +8 sg8
113.* TLS +GLOBAL +DEFAULT +8 sg3
114.* TLS +GLOBAL +DEFAULT +8 sg4
115.* TLS +GLOBAL +DEFAULT +8 sg5
116.* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr
117.* TLS +GLOBAL +DEFAULT +8 sg1
118.* FUNC +GLOBAL +DEFAULT +7 fn1
e2cbcd91
L
119.* TLS +GLOBAL +DEFAULT +8 sg2
120.* TLS +GLOBAL +DEFAULT +8 sg6
121.* TLS +GLOBAL +DEFAULT +8 sg7