x86: Skip __[start|stop]_SECNAME for --gc-sections -z start-stop-gc
[binutils-gdb.git] / ld / testsuite / ld-x86-64 / tlsbin2.rd
1 #source: tlsbinpic2.s
2 #source: tlsbin.s
3 #as: --64
4 #ld: -shared -melf_x86_64 --no-ld-generated-unwind-info
5 #readelf: -WSsrl
6 #target: x86_64-*-*
7
8 There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+:
9
10 Section 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]+\] .interp +.*
14 +\[[ 0-9]+\] .hash +.*
15 +\[[ 0-9]+\] .dynsym +.*
16 +\[[ 0-9]+\] .dynstr +.*
17 +\[[ 0-9]+\] .rela.dyn +.*
18 +\[[ 0-9]+\] .text +PROGBITS +0+401000 0+1000 0+233 00 +AX +0 +0 +4096
19 +\[[ 0-9]+\] .tdata +PROGBITS +0+601233 0+1233 0+60 00 WAT +0 +0 +1
20 +\[[ 0-9]+\] .tbss +NOBITS +0+601293 0+1293 0+40 00 WAT +0 +0 +1
21 +\[[ 0-9]+\] .dynamic +DYNAMIC +0+601298 0+1298 0+100 10 +WA +4 +0 +8
22 +\[[ 0-9]+\] .got +PROGBITS +0+601398 0+1398 0+28 08 +WA +0 +0 +8
23 +\[[ 0-9]+\] .got.plt +PROGBITS +0+6013c0 0+13c0 0+18 08 +WA +0 +0 +8
24 +\[[ 0-9]+\] .symtab +.*
25 +\[[ 0-9]+\] .strtab +.*
26 +\[[ 0-9]+\] .shstrtab +.*
27 Key to Flags:
28 #...
29
30 Elf file type is EXEC \(Executable file\)
31 Entry point 0x40113b
32 There are [0-9]+ program headers, starting at offset [0-9]+
33
34 Program Headers:
35 +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align
36 +PHDR.*
37 +INTERP.*
38 .*Requesting program interpreter.*
39 +LOAD +0x0+ 0x0+400000 0x0+400000 0x0+1233 0x0+1233 R E 0x200000
40 +LOAD +0x0+1233 0x0+601233 0x0+601233 0x0+1a5 0x0+1a5 RW +0x200000
41 +DYNAMIC +0x0+1298 0x0+601298 0x0+601298 0x0+100 0x0+100 RW +0x8
42 +TLS +0x0+1233 0x0+601233 0x0+601233 0x0+60 0x0+a0 R +0x1
43
44 Section to Segment mapping:
45 +Segment Sections...
46 +00 *
47 +01 +.interp *
48 +02 +.interp .hash .dynsym .dynstr .rela.dyn .text *
49 +03 +.tdata .dynamic .got .got.plt *
50 +04 +.dynamic *
51 +05 +.tdata .tbss *
52
53 Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 5 entries:
54 +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
55 [0-9a-f ]+R_X86_64_TPOFF64 +0+ sG5 \+ 0
56 [0-9a-f ]+R_X86_64_TPOFF64 +0+ sG2 \+ 0
57 [0-9a-f ]+R_X86_64_GLOB_DAT +0+ __tls_get_addr \+ 0
58 [0-9a-f ]+R_X86_64_TPOFF64 +0+ sG6 \+ 0
59 [0-9a-f ]+R_X86_64_TPOFF64 +0+ sG1 \+ 0
60
61 Symbol table '\.dynsym' contains [0-9]+ entries:
62 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
63 .* NOTYPE +LOCAL +DEFAULT +UND *
64 .* TLS +GLOBAL +DEFAULT +UND sG5
65 .* TLS +GLOBAL +DEFAULT +UND sG2
66 .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr
67 .* TLS +GLOBAL +DEFAULT +UND sG6
68 .* TLS +GLOBAL +DEFAULT +UND sG1
69
70 Symbol table '\.symtab' contains [0-9]+ entries:
71 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
72 .* NOTYPE +LOCAL +DEFAULT +UND *
73 .* FILE +LOCAL +DEFAULT +ABS .*tlsbinpic2.o
74 .* TLS +LOCAL +DEFAULT +7 sl1
75 .* TLS +LOCAL +DEFAULT +7 sl2
76 .* TLS +LOCAL +DEFAULT +7 sl3
77 .* TLS +LOCAL +DEFAULT +7 sl4
78 .* TLS +LOCAL +DEFAULT +7 sl5
79 .* TLS +LOCAL +DEFAULT +7 sl6
80 .* TLS +LOCAL +DEFAULT +7 sl7
81 .* TLS +LOCAL +DEFAULT +7 sl8
82 .* FILE +LOCAL +DEFAULT +ABS .*tlsbin.o
83 .* TLS +LOCAL +DEFAULT +8 bl1
84 .* TLS +LOCAL +DEFAULT +8 bl2
85 .* TLS +LOCAL +DEFAULT +8 bl3
86 .* TLS +LOCAL +DEFAULT +8 bl4
87 .* TLS +LOCAL +DEFAULT +8 bl5
88 .* TLS +LOCAL +DEFAULT +8 bl6
89 .* TLS +LOCAL +DEFAULT +8 bl7
90 .* TLS +LOCAL +DEFAULT +8 bl8
91 .* FILE +LOCAL +DEFAULT +ABS
92 .* OBJECT +LOCAL +DEFAULT +9 _DYNAMIC
93 .* OBJECT +LOCAL +DEFAULT +11 _GLOBAL_OFFSET_TABLE_
94 .* TLS +GLOBAL +DEFAULT +7 sg8
95 .* TLS +GLOBAL +DEFAULT +8 bg8
96 .* TLS +GLOBAL +DEFAULT +8 bg6
97 .* TLS +GLOBAL +DEFAULT +UND sG5
98 .* TLS +GLOBAL +DEFAULT +8 bg3
99 .* TLS +GLOBAL +DEFAULT +7 sg3
100 .* TLS +GLOBAL +HIDDEN +7 sh3
101 .* TLS +GLOBAL +DEFAULT +UND sG2
102 .* TLS +GLOBAL +DEFAULT +7 sg4
103 .* TLS +GLOBAL +DEFAULT +7 sg5
104 .* TLS +GLOBAL +DEFAULT +8 bg5
105 .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr
106 .* TLS +GLOBAL +HIDDEN +7 sh7
107 .* TLS +GLOBAL +HIDDEN +7 sh8
108 .* TLS +GLOBAL +DEFAULT +7 sg1
109 .* FUNC +GLOBAL +DEFAULT +6 _start
110 .* TLS +GLOBAL +HIDDEN +7 sh4
111 .* TLS +GLOBAL +DEFAULT +8 bg7
112 .* TLS +GLOBAL +HIDDEN +7 sh5
113 .* NOTYPE +GLOBAL +DEFAULT +11 __bss_start
114 .* TLS +GLOBAL +DEFAULT +UND sG6
115 .* FUNC +GLOBAL +DEFAULT +6 fn2
116 .* TLS +GLOBAL +DEFAULT +7 sg2
117 .* TLS +GLOBAL +DEFAULT +UND sG1
118 .* TLS +GLOBAL +HIDDEN +7 sh1
119 .* TLS +GLOBAL +DEFAULT +7 sg6
120 .* TLS +GLOBAL +DEFAULT +7 sg7
121 .* NOTYPE +GLOBAL +DEFAULT +11 _edata
122 .* NOTYPE +GLOBAL +DEFAULT +11 _end
123 .* TLS +GLOBAL +HIDDEN +7 sh2
124 .* TLS +GLOBAL +HIDDEN +7 sh6
125 .* TLS +GLOBAL +DEFAULT +8 bg2
126 .* TLS +GLOBAL +DEFAULT +8 bg1
127 .* TLS +GLOBAL +DEFAULT +8 bg4