* elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol
[binutils.git] / ld / testsuite / ld-powerpc / tlsexe32.r
blobaff95b7246c6a102ec3486614e6beea4a108e7bb
1 #source: tls32.s
2 #source: tlslib32.s
3 #as: -a32
4 #ld: -melf32ppc
5 #readelf: -WSsrl
6 #target: powerpc*-*-*
8 There are 16 section headers.*
10 Section Headers:
11 +\[Nr\] Name +Type +Addr +Off +Size +ES Flg Lk Inf Al
12 +\[ 0\] +NULL +0+ 0+ 0+ 00 +0 +0 +0
13 +\[ 1\] \.interp +.*
14 +\[ 2\] \.hash +.*
15 +\[ 3\] \.dynsym +.*
16 +\[ 4\] \.dynstr +.*
17 +\[ 5\] \.rela\.dyn +.*
18 +\[ 6\] \.rela\.plt +.*
19 +\[ 7\] \.text +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000070 00 +AX +0 +0 +1
20 +\[ 8\] \.tdata +PROGBITS +[0-9a-f]+ [0-9a-f]+ 00001c 00 WAT +0 +0 +4
21 +\[ 9\] \.tbss +NOBITS +[0-9a-f]+ [0-9a-f]+ 00001c 00 WAT +0 +0 +4
22 +\[10\] \.dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4
23 +\[11\] \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 00001c 04 WAX +0 +0 +4
24 +\[12\] \.plt +NOBITS +.*
25 +\[13\] \.shstrtab +STRTAB +.*
26 +\[14\] \.symtab +SYMTAB +.*
27 +\[15\] \.strtab +STRTAB +.*
28 #...
30 Elf file type is EXEC \(Executable file\)
31 Entry point .*
32 There are 6 program headers, starting at offset 52
34 Program Headers:
35 +Type +Offset +VirtAddr +PhysAddr +FileSiz MemSiz +Flg Align
36 +PHDR +0x000034 0x01800034 0x01800034 0x000c0 0x000c0 R E 0x4
37 +INTERP +0x0000f4 0x018000f4 0x018000f4 0x00011 0x00011 R +0x1
38 +\[Requesting program interpreter: .*\]
39 +LOAD .* R E 0x10000
40 +LOAD .* RWE 0x10000
41 +DYNAMIC .* RW +0x4
42 +TLS .* 0x0001c 0x00038 R +0x4
44 Section to Segment mapping:
45 +Segment Sections\.\.\.
46 +00 +
47 +01 +\.interp
48 +02 +\.interp \.hash \.dynsym \.dynstr \.rela\.dyn \.rela\.plt \.text
49 +03 +\.tdata \.dynamic \.got \.plt
50 +04 +\.dynamic
51 +05 +\.tdata \.tbss
53 Relocation section '\.rela\.dyn' at offset .* contains 2 entries:
54 Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend
55 [0-9a-f ]+R_PPC_TPREL32 +00000000 +gd \+ 0
56 [0-9a-f ]+R_PPC_DTPMOD32 +00000000 +ld \+ 0
58 Relocation section '\.rela\.plt' at offset .* contains 1 entries:
59 Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend
60 [0-9a-f ]+R_PPC_JMP_SLOT[0-9a-f ]+__tls_get_addr \+ 0
62 Symbol table '\.dynsym' contains [0-9]+ entries:
63 +Num: +Value +Size Type +Bind +Vis +Ndx Name
64 .* NOTYPE +LOCAL +DEFAULT +UND
65 .* TLS +GLOBAL DEFAULT +UND gd
66 .* FUNC +GLOBAL DEFAULT +UND __tls_get_addr
67 .* TLS +GLOBAL DEFAULT +UND ld
68 .* NOTYPE +GLOBAL DEFAULT +ABS __end
69 .* NOTYPE +GLOBAL DEFAULT +ABS __bss_start
70 .* NOTYPE +GLOBAL DEFAULT +ABS _edata
71 .* NOTYPE +GLOBAL DEFAULT +ABS _end
73 Symbol table '\.symtab' contains 40 entries:
74 +Num: +Value +Size Type +Bind +Vis +Ndx Name
75 .* NOTYPE +LOCAL +DEFAULT +UND
76 .* SECTION LOCAL +DEFAULT +1
77 .* SECTION LOCAL +DEFAULT +2
78 .* SECTION LOCAL +DEFAULT +3
79 .* SECTION LOCAL +DEFAULT +4
80 .* SECTION LOCAL +DEFAULT +5
81 .* SECTION LOCAL +DEFAULT +6
82 .* SECTION LOCAL +DEFAULT +7
83 .* SECTION LOCAL +DEFAULT +8
84 .* SECTION LOCAL +DEFAULT +9
85 .* SECTION LOCAL +DEFAULT +10
86 .* SECTION LOCAL +DEFAULT +11
87 .* SECTION LOCAL +DEFAULT +12
88 .* SECTION LOCAL +DEFAULT +13
89 .* SECTION LOCAL +DEFAULT +14
90 .* SECTION LOCAL +DEFAULT +15
91 .* TLS +LOCAL +DEFAULT +8 gd4
92 .* TLS +LOCAL +DEFAULT +8 ld4
93 .* TLS +LOCAL +DEFAULT +8 ld5
94 .* TLS +LOCAL +DEFAULT +8 ld6
95 .* TLS +LOCAL +DEFAULT +8 ie4
96 .* TLS +LOCAL +DEFAULT +8 le4
97 .* TLS +LOCAL +DEFAULT +8 le5
98 .* OBJECT +LOCAL +HIDDEN +10 _DYNAMIC
99 .* OBJECT +LOCAL +HIDDEN +11 _GLOBAL_OFFSET_TABLE_
100 .* TLS +GLOBAL DEFAULT +UND gd
101 .* TLS +GLOBAL DEFAULT +9 le0
102 .* FUNC +GLOBAL DEFAULT +UND __tls_get_addr
103 .* TLS +GLOBAL DEFAULT +9 ld0
104 .* TLS +GLOBAL DEFAULT +9 le1
105 .* TLS +GLOBAL DEFAULT +UND ld
106 .* NOTYPE +GLOBAL DEFAULT +7 _start
107 .* NOTYPE +GLOBAL DEFAULT +ABS __end
108 .* TLS +GLOBAL DEFAULT +9 ld2
109 .* TLS +GLOBAL DEFAULT +9 ld1
110 .* NOTYPE +GLOBAL DEFAULT +ABS __bss_start
111 .* NOTYPE +GLOBAL DEFAULT +ABS _edata
112 .* NOTYPE +GLOBAL DEFAULT +ABS _end
113 .* TLS +GLOBAL DEFAULT +9 gd0
114 .* TLS +GLOBAL DEFAULT +9 ie0