]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-x86-64/tlsgdesc.rd
ELF: Don't generate unused section symbols
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-x86-64 / tlsgdesc.rd
CommitLineData
67a4f2b7
AO
1#source: tlsgdesc.s
2#as: --64
e41b3a13 3#ld: -shared -melf64_x86_64 --no-ld-generated-unwind-info
67a4f2b7
AO
4#readelf: -WSsrl
5#target: x86_64-*-*
6
c9ccd0df 7There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+:
67a4f2b7
AO
8
9Section Headers:
f9272224 10 +\[Nr\] Name +Type +Address +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 +.*
17 +\[[ 0-9]+\] \.plt +.*
18 +\[[ 0-9]+\] \.text +.*
19 +\[[ 0-9]+\] \.dynamic +.*
20 +\[[ 0-9]+\] \.got +.*
21 +\[[ 0-9]+\] \.got.plt +.*
c9ccd0df
MF
22 +\[[ 0-9]+\] \.symtab +.*
23 +\[[ 0-9]+\] \.strtab +.*
dd905818 24 +\[[ 0-9]+\] \.shstrtab +.*
67a4f2b7 25Key to Flags:
9fb71ee4 26#...
67a4f2b7
AO
27
28Elf file type is DYN \(Shared object file\)
29Entry point 0x[0-9a-f]+
30There are [0-9]+ program headers, starting at offset [0-9]+
31
32Program Headers:
f9272224
AM
33 +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align
34 +LOAD.*
35 +LOAD.*
36 +DYNAMIC.*
67a4f2b7
AO
37
38 Section to Segment mapping:
f9272224
AM
39 +Segment Sections...
40 +00 +.hash .dynsym .dynstr .rela.dyn .rela.plt .plt .text *
41 +01 +.dynamic .got .got.plt *
42 +02 +.dynamic *
67a4f2b7
AO
43
44Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 8 entries:
f9272224 45 +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
8f79b794
L
46[0-9a-f]+ +0+100000012 R_X86_64_TPOFF64 +0+ sG3 \+ 0
47[0-9a-f]+ +0+200000012 R_X86_64_TPOFF64 +0+ sG5 \+ 0
48[0-9a-f]+ +0+300000010 R_X86_64_DTPMOD64 +0+ sG2 \+ 0
49[0-9a-f]+ +0+300000011 R_X86_64_DTPOFF64 +0+ sG2 \+ 0
50[0-9a-f]+ +0+400000012 R_X86_64_TPOFF64 +0+ sG4 \+ 0
fd161d86
AM
51[0-9a-f]+ +0+600000012 R_X86_64_TPOFF64 +0+ sG6 \+ 0
52[0-9a-f]+ +0+800000010 R_X86_64_DTPMOD64 +0+ sG1 \+ 0
53[0-9a-f]+ +0+800000011 R_X86_64_DTPOFF64 +0+ sG1 \+ 0
67a4f2b7
AO
54
55Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 3 entries:
f9272224 56 +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
8f79b794 57[0-9a-f]+ +0+500000007 R_X86_64_JUMP_SLOT +0+ __tls_get_addr \+ 0
fd161d86 58[0-9a-f]+ +0+800000024 R_X86_64_TLSDESC +0+ sG1 \+ 0
8f79b794 59[0-9a-f]+ +0+300000024 R_X86_64_TLSDESC +0+ sG2 \+ 0
67a4f2b7 60
c9ccd0df 61Symbol table '\.dynsym' contains [0-9]+ entries:
f9272224
AM
62 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
63 +[0-9]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND *
f9272224
AM
64 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG3
65 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG5
66 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2
67 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG4
68 +[0-9]+: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr
f9272224
AM
69 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6
70 +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +7 fc1
71 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1
67a4f2b7 72
c9ccd0df 73Symbol table '\.symtab' contains [0-9]+ entries:
f9272224
AM
74 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
75 +[0-9]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND *
220cf809
L
76 +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +8 _DYNAMIC
77 +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +10 _GLOBAL_OFFSET_TABLE_
f9272224
AM
78 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG3
79 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG5
80 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2
81 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG4
82 +[0-9]+: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr
f9272224
AM
83 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6
84 +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +7 fc1
85 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1