1 |
38 |
julius |
#source: tlssunpic32.s
|
2 |
|
|
#source: tlspic.s
|
3 |
|
|
#as: --32 -K PIC
|
4 |
|
|
#ld: -shared -melf32_sparc
|
5 |
|
|
#readelf: -WSsrl
|
6 |
|
|
#target: sparc*-*-*
|
7 |
|
|
|
8 |
|
|
There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+:
|
9 |
|
|
|
10 |
|
|
Section Headers:
|
11 |
|
|
+\[Nr\] Name +Type +Addr +Off +Size +ES Flg Lk Inf Al
|
12 |
|
|
+\[[ 0-9]+\] +NULL +0+ 0+ 0+ 0+ +0 +0 +0
|
13 |
|
|
+\[[ 0-9]+\] .hash +.*
|
14 |
|
|
+\[[ 0-9]+\] .dynsym +.*
|
15 |
|
|
+\[[ 0-9]+\] .dynstr +.*
|
16 |
|
|
+\[[ 0-9]+\] .rela.dyn +.*
|
17 |
|
|
+\[[ 0-9]+\] .rela.plt +.*
|
18 |
|
|
+\[[ 0-9]+\] .text +PROGBITS +0+1000 0+1000 0+1000 0+ +AX +0 +0 4096
|
19 |
|
|
+\[[ 0-9]+\] .tdata +PROGBITS +0+12000 0+2000 0+60 0+ WAT +0 +0 +4
|
20 |
|
|
+\[[ 0-9]+\] .tbss +NOBITS +0+12060 0+2060 0+20 0+ WAT +0 +0 +4
|
21 |
|
|
+\[[ 0-9]+\] .dynamic +DYNAMIC +0+12060 0+2060 0+98 08 +WA +3 +0 +4
|
22 |
|
|
+\[[ 0-9]+\] .got +PROGBITS +0+120f8 0+20f8 0+4c 04 +WA +0 +0 +4
|
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 0x1000
|
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 +0x0+ 0x0+ 0x0+ 0x0+2000 0x0+2000 R E 0x10000
|
36 |
|
|
+LOAD +0x0+2000 0x0+12000 0x0+12000 0x0+184 0x0+184 RWE 0x10000
|
37 |
|
|
+DYNAMIC +0x0+2060 0x0+12060 0x0+12060 0x0+98 0x0+98 RW +0x4
|
38 |
|
|
+TLS +0x0+2000 0x0+12000 0x0+12000 0x0+60 0x0+80 R +0x4
|
39 |
|
|
#...
|
40 |
|
|
|
41 |
|
|
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries:
|
42 |
|
|
Offset +Info +Type +Sym. Value +Symbol's Name \+ Addend
|
43 |
|
|
[0-9a-f ]+R_SPARC_TLS_DTPMOD32 +0+
|
44 |
|
|
[0-9a-f ]+R_SPARC_TLS_TPOFF32 +0+24
|
45 |
|
|
[0-9a-f ]+R_SPARC_TLS_TPOFF32 +0+30
|
46 |
|
|
[0-9a-f ]+R_SPARC_TLS_DTPMOD32 +0+
|
47 |
|
|
[0-9a-f ]+R_SPARC_TLS_DTPMOD32 +0+
|
48 |
|
|
[0-9a-f ]+R_SPARC_TLS_TPOFF32 +0+64
|
49 |
|
|
[0-9a-f ]+R_SPARC_TLS_TPOFF32 +0+50
|
50 |
|
|
[0-9a-f ]+R_SPARC_TLS_TPOFF32 +0+70
|
51 |
|
|
[0-9a-f ]+R_SPARC_TLS_DTPMOD32 +0+
|
52 |
|
|
[0-9a-f ]+R_SPARC_TLS_TPOFF32 +0+44
|
53 |
|
|
[0-9a-f ]+R_SPARC_TLS_TPOFF32 +0+10 +sg5 \+ 0
|
54 |
|
|
[0-9a-f ]+R_SPARC_TLS_DTPMOD32 +0+ +sg1 \+ 0
|
55 |
|
|
[0-9a-f ]+R_SPARC_TLS_DTPOFF32 +0+ +sg1 \+ 0
|
56 |
|
|
[0-9a-f ]+R_SPARC_TLS_TPOFF32 +0+4 +sg2 \+ 0
|
57 |
|
|
|
58 |
|
|
Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entries:
|
59 |
|
|
Offset +Info +Type +Sym. Value +Symbol's Name \+ Addend
|
60 |
|
|
[0-9a-f ]+R_SPARC_JMP_SLOT +0+ +__tls_get_addr \+ 0
|
61 |
|
|
|
62 |
|
|
Symbol table '\.dynsym' contains [0-9]+ entries:
|
63 |
|
|
+Num: +Value +Size Type +Bind +Vis +Ndx Name
|
64 |
|
|
.* NOTYPE +LOCAL +DEFAULT +UND *
|
65 |
|
|
.* SECTION LOCAL +DEFAULT +6 *
|
66 |
|
|
.* SECTION LOCAL +DEFAULT +7 *
|
67 |
|
|
.* SECTION LOCAL +DEFAULT +10 *
|
68 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg8
|
69 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg3
|
70 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg4
|
71 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg5
|
72 |
|
|
.* NOTYPE +GLOBAL DEFAULT +UND __tls_get_addr
|
73 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg1
|
74 |
|
|
.* FUNC +GLOBAL DEFAULT +6 fn1
|
75 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS __bss_start
|
76 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg2
|
77 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg6
|
78 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg7
|
79 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
|
80 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS _end
|
81 |
|
|
|
82 |
|
|
Symbol table '\.symtab' contains [0-9]+ entries:
|
83 |
|
|
+Num: +Value +Size Type +Bind +Vis +Ndx Name
|
84 |
|
|
.* NOTYPE +LOCAL +DEFAULT +UND *
|
85 |
|
|
.* SECTION LOCAL +DEFAULT +1 *
|
86 |
|
|
.* SECTION LOCAL +DEFAULT +2 *
|
87 |
|
|
.* SECTION LOCAL +DEFAULT +3 *
|
88 |
|
|
.* SECTION LOCAL +DEFAULT +4 *
|
89 |
|
|
.* SECTION LOCAL +DEFAULT +5 *
|
90 |
|
|
.* SECTION LOCAL +DEFAULT +6 *
|
91 |
|
|
.* SECTION LOCAL +DEFAULT +7 *
|
92 |
|
|
.* SECTION LOCAL +DEFAULT +8 *
|
93 |
|
|
.* SECTION LOCAL +DEFAULT +9 *
|
94 |
|
|
.* SECTION LOCAL +DEFAULT +10 *
|
95 |
|
|
.* SECTION LOCAL +DEFAULT +11 *
|
96 |
|
|
.* TLS +LOCAL +DEFAULT +7 sl1
|
97 |
|
|
.* TLS +LOCAL +DEFAULT +7 sl2
|
98 |
|
|
.* TLS +LOCAL +DEFAULT +7 sl3
|
99 |
|
|
.* TLS +LOCAL +DEFAULT +7 sl4
|
100 |
|
|
.* TLS +LOCAL +DEFAULT +7 sl5
|
101 |
|
|
.* TLS +LOCAL +DEFAULT +7 sl6
|
102 |
|
|
.* TLS +LOCAL +DEFAULT +7 sl7
|
103 |
|
|
.* TLS +LOCAL +DEFAULT +7 sl8
|
104 |
|
|
.* TLS +LOCAL +HIDDEN +8 sH1
|
105 |
|
|
.* OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC
|
106 |
|
|
.* TLS +LOCAL +HIDDEN +7 sh3
|
107 |
|
|
.* TLS +LOCAL +HIDDEN +8 sH2
|
108 |
|
|
.* TLS +LOCAL +HIDDEN +8 sH7
|
109 |
|
|
.* OBJECT +LOCAL +HIDDEN +ABS _PROCEDURE_LINKAGE_TABLE_
|
110 |
|
|
.* TLS +LOCAL +HIDDEN +7 sh7
|
111 |
|
|
.* TLS +LOCAL +HIDDEN +7 sh8
|
112 |
|
|
.* TLS +LOCAL +HIDDEN +8 sH4
|
113 |
|
|
.* TLS +LOCAL +HIDDEN +7 sh4
|
114 |
|
|
.* TLS +LOCAL +HIDDEN +8 sH3
|
115 |
|
|
.* TLS +LOCAL +HIDDEN +7 sh5
|
116 |
|
|
.* TLS +LOCAL +HIDDEN +8 sH5
|
117 |
|
|
.* TLS +LOCAL +HIDDEN +8 sH6
|
118 |
|
|
.* TLS +LOCAL +HIDDEN +8 sH8
|
119 |
|
|
.* TLS +LOCAL +HIDDEN +7 sh1
|
120 |
|
|
.* OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
|
121 |
|
|
.* TLS +LOCAL +HIDDEN +7 sh2
|
122 |
|
|
.* TLS +LOCAL +HIDDEN +7 sh6
|
123 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg8
|
124 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg3
|
125 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg4
|
126 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg5
|
127 |
|
|
.* NOTYPE +GLOBAL DEFAULT +UND __tls_get_addr
|
128 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg1
|
129 |
|
|
.* FUNC +GLOBAL DEFAULT +6 fn1
|
130 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS __bss_start
|
131 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg2
|
132 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg6
|
133 |
|
|
.* TLS +GLOBAL DEFAULT +7 sg7
|
134 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
|
135 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS _end
|