1 |
38 |
julius |
#source: tlstoc.s
|
2 |
|
|
#as: -a64
|
3 |
|
|
#ld: -shared -melf64ppc
|
4 |
|
|
#readelf: -WSsrl
|
5 |
|
|
#target: powerpc64*-*-*
|
6 |
|
|
|
7 |
|
|
There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+:
|
8 |
|
|
|
9 |
|
|
Section Headers:
|
10 |
|
|
+\[Nr\] Name +Type +Address +Off +Size +ES Flg Lk Inf Al
|
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]+\] \.text .*
|
18 |
|
|
+\[[ 0-9]+\] \.tdata +PROGBITS .* 0+38 0+ WAT +0 +0 +8
|
19 |
|
|
+\[[ 0-9]+\] \.tbss +NOBITS .* 0+38 0+ WAT +0 +0 +8
|
20 |
|
|
+\[[ 0-9]+\] \.dynamic .*
|
21 |
|
|
+\[[ 0-9]+\] \.branch_lt .*
|
22 |
|
|
+\[[ 0-9]+\] \.got .*
|
23 |
|
|
+\[[ 0-9]+\] \.plt .*
|
24 |
|
|
+\[[ 0-9]+\] \.shstrtab .*
|
25 |
|
|
+\[[ 0-9]+\] \.symtab .*
|
26 |
|
|
+\[[ 0-9]+\] \.strtab .*
|
27 |
|
|
#...
|
28 |
|
|
|
29 |
|
|
Elf file type is DYN \(Shared object file\)
|
30 |
|
|
Entry point 0x[0-9a-f]+
|
31 |
|
|
There are [0-9]+ program headers, starting at offset [0-9]+
|
32 |
|
|
|
33 |
|
|
Program Headers:
|
34 |
|
|
+Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align
|
35 |
|
|
+LOAD .* R E 0x10000
|
36 |
|
|
+LOAD .* RW +0x10000
|
37 |
|
|
+DYNAMIC .* RW +0x8
|
38 |
|
|
+TLS .* 0x0+38 0x0+70 R +0x8
|
39 |
|
|
|
40 |
|
|
Section to Segment mapping:
|
41 |
|
|
+Segment Sections\.\.\.
|
42 |
|
|
+0+ +\.hash \.dynsym \.dynstr \.rela\.dyn \.rela\.plt \.text
|
43 |
|
|
+01 +\.tdata \.dynamic \.got \.plt
|
44 |
|
|
+02 +\.dynamic
|
45 |
|
|
+03 +\.tdata \.tbss
|
46 |
|
|
|
47 |
|
|
Relocation section '\.rela\.dyn' at offset .* contains 11 entries:
|
48 |
|
|
+Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
|
49 |
|
|
[0-9a-f ]+R_PPC64_TPREL16 +0+60 le0 \+ 0
|
50 |
|
|
[0-9a-f ]+R_PPC64_TPREL16_HA +0+68 le1 \+ 0
|
51 |
|
|
[0-9a-f ]+R_PPC64_TPREL16_LO +0+68 le1 \+ 0
|
52 |
|
|
[0-9a-f ]+R_PPC64_DTPMOD64 +0+ gd \+ 0
|
53 |
|
|
[0-9a-f ]+R_PPC64_DTPREL64 +0+ gd \+ 0
|
54 |
|
|
[0-9a-f ]+R_PPC64_DTPMOD64 +0+ ld \+ 0
|
55 |
|
|
[0-9a-f ]+R_PPC64_DTPMOD64 +0+38 gd0 \+ 0
|
56 |
|
|
[0-9a-f ]+R_PPC64_DTPREL64 +0+38 gd0 \+ 0
|
57 |
|
|
[0-9a-f ]+R_PPC64_DTPMOD64 +0+40 ld0 \+ 0
|
58 |
|
|
[0-9a-f ]+R_PPC64_DTPREL64 +0+50 ld2 \+ 0
|
59 |
|
|
[0-9a-f ]+R_PPC64_TPREL64 +0+58 ie0 \+ 0
|
60 |
|
|
|
61 |
|
|
Relocation section '\.rela\.plt' at offset .* contains 1 entries:
|
62 |
|
|
+Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
|
63 |
|
|
[0-9a-f ]+R_PPC64_JMP_SLOT +0+ __tls_get_addr \+ 0
|
64 |
|
|
|
65 |
|
|
Symbol table '\.dynsym' contains [0-9]+ entries:
|
66 |
|
|
+Num: +Value +Size Type +Bind +Vis +Ndx Name
|
67 |
|
|
.* NOTYPE +LOCAL +DEFAULT +UND
|
68 |
|
|
.* SECTION LOCAL +DEFAULT +6
|
69 |
|
|
.* SECTION LOCAL +DEFAULT +7
|
70 |
|
|
.* TLS +GLOBAL DEFAULT +UND gd
|
71 |
|
|
.* TLS +GLOBAL DEFAULT +8 le0
|
72 |
|
|
.* NOTYPE +GLOBAL DEFAULT +UND __tls_get_addr
|
73 |
|
|
.* TLS +GLOBAL DEFAULT +8 ld0
|
74 |
|
|
.* TLS +GLOBAL DEFAULT +8 le1
|
75 |
|
|
.* TLS +GLOBAL DEFAULT +UND ld
|
76 |
|
|
.* NOTYPE +GLOBAL DEFAULT +6 _start
|
77 |
|
|
.* TLS +GLOBAL DEFAULT +8 ld2
|
78 |
|
|
.* TLS +GLOBAL DEFAULT +8 ld1
|
79 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS __bss_start
|
80 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
|
81 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS _end
|
82 |
|
|
.* TLS +GLOBAL DEFAULT +8 gd0
|
83 |
|
|
.* TLS +GLOBAL DEFAULT +8 ie0
|
84 |
|
|
|
85 |
|
|
Symbol table '\.symtab' contains [0-9]+ entries:
|
86 |
|
|
+Num: +Value +Size Type +Bind +Vis +Ndx Name
|
87 |
|
|
.* NOTYPE +LOCAL +DEFAULT +UND
|
88 |
|
|
.* SECTION LOCAL +DEFAULT +1
|
89 |
|
|
.* SECTION LOCAL +DEFAULT +2
|
90 |
|
|
.* SECTION LOCAL +DEFAULT +3
|
91 |
|
|
.* SECTION LOCAL +DEFAULT +4
|
92 |
|
|
.* SECTION LOCAL +DEFAULT +5
|
93 |
|
|
.* SECTION LOCAL +DEFAULT +6
|
94 |
|
|
.* SECTION LOCAL +DEFAULT +7
|
95 |
|
|
.* SECTION LOCAL +DEFAULT +8
|
96 |
|
|
.* SECTION LOCAL +DEFAULT +9
|
97 |
|
|
.* SECTION LOCAL +DEFAULT +10
|
98 |
|
|
.* SECTION LOCAL +DEFAULT +11
|
99 |
|
|
.* SECTION LOCAL +DEFAULT +12
|
100 |
|
|
.* TLS +LOCAL +DEFAULT +7 gd4
|
101 |
|
|
.* TLS +LOCAL +DEFAULT +7 ld4
|
102 |
|
|
.* TLS +LOCAL +DEFAULT +7 ld5
|
103 |
|
|
.* TLS +LOCAL +DEFAULT +7 ld6
|
104 |
|
|
.* TLS +LOCAL +DEFAULT +7 ie4
|
105 |
|
|
.* TLS +LOCAL +DEFAULT +7 le4
|
106 |
|
|
.* TLS +LOCAL +DEFAULT +7 le5
|
107 |
|
|
.* NOTYPE +LOCAL +DEFAULT +11 \.Lie0
|
108 |
|
|
.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
|
109 |
|
|
.* NOTYPE +LOCAL +DEFAULT +6 \.__tls_get_addr
|
110 |
|
|
.* TLS +GLOBAL DEFAULT +UND gd
|
111 |
|
|
.* TLS +GLOBAL DEFAULT +8 le0
|
112 |
|
|
.* NOTYPE +GLOBAL DEFAULT +UND __tls_get_addr
|
113 |
|
|
.* TLS +GLOBAL DEFAULT +8 ld0
|
114 |
|
|
.* TLS +GLOBAL DEFAULT +8 le1
|
115 |
|
|
.* TLS +GLOBAL DEFAULT +UND ld
|
116 |
|
|
.* NOTYPE +GLOBAL DEFAULT +6 _start
|
117 |
|
|
.* TLS +GLOBAL DEFAULT +8 ld2
|
118 |
|
|
.* TLS +GLOBAL DEFAULT +8 ld1
|
119 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS __bss_start
|
120 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
|
121 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS _end
|
122 |
|
|
.* TLS +GLOBAL DEFAULT +8 gd0
|
123 |
|
|
.* TLS +GLOBAL DEFAULT +8 ie0
|