binutils/
[deliverable/binutils-gdb.git] / ld / testsuite / ld-sh / tlspic-2.d
CommitLineData
6c381eeb
KK
1#source: tlspic1.s
2#source: tlspic2.s
3#as: -little
4#ld: -shared -EL
5#readelf: -Ssrl
6#target: sh*-*-linux* sh*-*-netbsd*
7
8There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+:
9
10Section Headers:
11 \[Nr\] Name +Type +Addr +Off +Size +ES Flg Lk Inf Al
12 \[ 0\] +NULL +0+ 0+ 0+ 0+ +0 +0 +0
13 \[ 1\] \.hash +.*
14 \[ 2\] \.dynsym +.*
15 \[ 3\] \.dynstr +.*
16 \[ 4\] \.rela\.dyn +.*
17 \[ 5\] \.rela\.plt +.*
18 \[ 6\] \.plt +.*
19 \[ 7\] \.text +PROGBITS +0+[0-9a-f]+ .*
2f2f4511
KK
20 \[ 8\] \.tdata +PROGBITS +0+[0-9a-f]+ [0-9a-f]+ 0+018 00 WAT 0 0 4
21 \[ 9\] \.tbss +NOBITS +0+[0-9a-f]+ [0-9a-f]+ 0+008 00 WAT 0 0 1
6c381eeb
KK
22#...
23 \[[0-9a-f]+\] \.got +PROGBITS +0+[0-9a-f]+ .*
24 \[[0-9a-f]+\] \.sbss +.*
25 \[[0-9a-f]+\] \.bss +.*
26#...
27 \[[0-9a-f]+\] \.shstrtab +.*
28 \[[0-9a-f]+\] \.symtab +.*
29 \[[0-9a-f]+\] \.strtab +.*
30Key to Flags:
31.*
32.*
33.*
34
35Elf file type is DYN \(Shared object file\)
36Entry point 0x[0-9a-f]+
37There are 4 program headers, starting at offset [0-9]+
38
39Program Headers:
40 Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align
41 LOAD.*
42 LOAD.*
43 DYNAMIC.*
a2b2bf0e 44 TLS +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x0+18 0x0+20 R +0x4
6c381eeb
KK
45
46 Section to Segment mapping:
47 Segment Sections\.\.\.
48 00 +\.hash \.dynsym \.dynstr \.rela\.dyn \.rela\.plt \.plt \.text *
cbaa0dc5
AM
49 01 +\.tdata \.dynamic \.got *
50 02 +\.dynamic *
6c381eeb
KK
51 03 +\.tdata \.tbss *
52
53Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 10 entries:
54 Offset +Info +Type +Sym\.Value +Sym\. Name \+ Addend
550+[0-9a-f]+ 00000095 R_SH_TLS_DTPMOD32 +0+00
560+[0-9a-f]+ 00000097 R_SH_TLS_TPOFF32 +0+0c
570+[0-9a-f]+ 00000095 R_SH_TLS_DTPMOD32 +0+00
580+[0-9a-f]+ 00000095 R_SH_TLS_DTPMOD32 +0+00
590+[0-9a-f]+ 00000097 R_SH_TLS_TPOFF32 +0+1c
600+[0-9a-f]+ 00000095 R_SH_TLS_DTPMOD32 +0+00
610+[0-9a-f]+ 00000097 R_SH_TLS_TPOFF32 +0+14
620+[0-9a-f]+ 0000[0-9a-f]+95 R_SH_TLS_DTPMOD32 +0+ +sg1 \+ 0
630+[0-9a-f]+ 0000[0-9a-f]+96 R_SH_TLS_DTPOFF32 +0+ +sg1 \+ 0
640+[0-9a-f]+ 0000[0-9a-f]+97 R_SH_TLS_TPOFF32 +0+04 +sg2 \+ 0
65
66Relocation section '\.rela\.plt' at offset 0x[0-9a-f]+ contains 1 entries:
67 Offset +Info +Type +Sym\.Value +Sym\. Name \+ Addend
935cac6e 680+[0-9a-f]+ 0000[0-9a-f]+a4 R_SH_JMP_SLOT +[0-9a-f]+ +__tls_get_addr \+ [0-9a-f]+
6c381eeb
KK
69
70Symbol table '\.dynsym' contains [0-9]+ entries:
71 +Num: +Value +Size Type +Bind +Vis +Ndx Name
72 +0: 0+ +0 NOTYPE +LOCAL +DEFAULT UND *
2f2f4511
KK
73 +1: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +7 *
74 +2: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +8 *
75 +3: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +9 *
f6a8ae81
KK
76 +4: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +[0-9]+ *
77 +5: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +[0-9]+ *
2f2f4511 78 +6: [0-9a-f]+ +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC
6c381eeb 79 +[0-9a-f]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT UND __tls_get_addr
2f2f4511 80 +[0-9a-f]+: 0+00 +0 TLS +GLOBAL DEFAULT +8 sg1
f6a8ae81 81#...
6c381eeb
KK
82 +[0-9a-f]+: [0-9a-f]+ +0 FUNC +GLOBAL DEFAULT +7 fn1
83#...
2f2f4511 84 +[0-9a-f]+: 0+04 +0 TLS +GLOBAL DEFAULT +8 sg2
6c381eeb
KK
85#...
86
6c381eeb 87#pass
f6a8ae81 88
This page took 0.111621 seconds and 4 git commands to generate.