]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-i386/tlsgdesc.rd
Define various symbols conditionally in shared libraries
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-i386 / tlsgdesc.rd
CommitLineData
67a4f2b7
AO
1#source: tlsgdesc.s
2#as: --32
e41b3a13 3#ld: -shared -melf_i386 --no-ld-generated-unwind-info
67a4f2b7
AO
4#readelf: -Ssrl
5#target: i?86-*-*
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 +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]+\] \.rel.dyn +.*
16 +\[[ 0-9]+\] \.rel.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 .rel.dyn .rel.plt .plt .text *
41 +01 +.dynamic .got .got.plt *
42 +02 +.dynamic *
67a4f2b7
AO
43
44Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 8 entries:
45 Offset +Info +Type +Sym.Value +Sym. Name
f9272224
AM
46[0-9a-f ]+R_386_TLS_TPOFF32 0+ +sG3
47[0-9a-f ]+R_386_TLS_TPOFF +0+ +sG5
48[0-9a-f ]+R_386_TLS_DTPMOD3 0+ +sG2
49[0-9a-f ]+R_386_TLS_DTPOFF3 0+ +sG2
50[0-9a-f ]+R_386_TLS_TPOFF +0+ +sG4
51[0-9a-f ]+R_386_TLS_TPOFF32 0+ +sG6
52[0-9a-f ]+R_386_TLS_DTPMOD3 0+ +sG1
53[0-9a-f ]+R_386_TLS_DTPOFF3 0+ +sG1
67a4f2b7
AO
54
55Relocation section '.rel.plt' at offset 0x[0-9a-f]+ contains 3 entries:
f9272224
AM
56 Offset +Info +Type +Sym.Value +Sym. Name
57[0-9a-f ]+R_386_JUMP_SLOT +0+ +___tls_get_addr
58[0-9a-f ]+R_386_TLS_DESC +0+ +sG1
59[0-9a-f ]+R_386_TLS_DESC +0+ +sG2
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 *
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
f9272224
AM
68 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6
69 +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +7 fc1
70 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1
f9272224 71 +[0-9]+: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +UND ___tls_get_addr
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 *
76 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +1 *
77 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +2 *
78 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +3 *
79 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +4 *
80 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +5 *
81 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +6 *
82 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +7 *
83 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +8 *
84 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +9 *
85 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +10 *
220cf809
L
86 +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +8 _DYNAMIC
87 +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +10 _GLOBAL_OFFSET_TABLE_
f9272224
AM
88 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG3
89 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG5
90 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2
91 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG4
f9272224
AM
92 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6
93 +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +7 fc1
94 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1
f9272224 95 +[0-9]+: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +UND ___tls_get_addr