1 |
205 |
julius |
#source: tlsbinpic.s
|
2 |
|
|
#source: tlsbin.s
|
3 |
|
|
#as:
|
4 |
|
|
#ld: -shared
|
5 |
|
|
#readelf: -WSsrl
|
6 |
|
|
#target: ia64-*-*
|
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]+\] .rela.IA_64.pltoff +.*
|
19 |
|
|
+\[[ 0-9]+\] .plt +.*
|
20 |
|
|
+\[[ 0-9]+\] .text +PROGBITS +40+1000 0+1000 0+140 00 +AX +0 +0 4096
|
21 |
|
|
+\[[ 0-9]+\] .IA_64.unwind_info +.*
|
22 |
|
|
+\[[ 0-9]+\] .IA_64.unwind +.*
|
23 |
|
|
+\[[ 0-9]+\] .tdata +PROGBITS +60+1[0-9a-f]+ 0+1[0-9a-f]+ 0+60 00 WAT +0 +0 +4
|
24 |
|
|
+\[[ 0-9]+\] .tbss +NOBITS +60+1[0-9a-f]+ 0+1[0-9a-f]+ 0+40 00 WAT +0 +0 +1
|
25 |
|
|
+\[[ 0-9]+\] .dynamic +DYNAMIC +60+1[0-9a-f]+ 0+1[0-9a-f]+ 0+150 10 +WA +4 +0 +8
|
26 |
|
|
+\[[ 0-9]+\] .got +PROGBITS +60+1318 0+1318 0+48 00 WAp +0 +0 +8
|
27 |
|
|
+\[[ 0-9]+\] .IA_64.pltoff +.*
|
28 |
|
|
+\[[ 0-9]+\] .shstrtab +.*
|
29 |
|
|
+\[[ 0-9]+\] .symtab +.*
|
30 |
|
|
+\[[ 0-9]+\] .strtab +.*
|
31 |
|
|
#...
|
32 |
|
|
|
33 |
|
|
Elf file type is EXEC \(Executable file\)
|
34 |
|
|
Entry point 0x40+10d0
|
35 |
|
|
There are [0-9]+ program headers, starting at offset [0-9]+
|
36 |
|
|
|
37 |
|
|
Program Headers:
|
38 |
|
|
Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align
|
39 |
|
|
PHDR +0x0+40 0x40+40 0x40+40 0x0+188 0x0+188 R E 0x8
|
40 |
|
|
INTERP +0x0+1c8 0x40+1c8 0x40+1c8 0x[0-9a-f]+ 0x[0-9a-f]+ R +0x1
|
41 |
|
|
.*Requesting program interpreter.*
|
42 |
|
|
LOAD +0x0+ 0x40+ 0x40+ 0x0+1[0-9a-f]+ 0x0+1[0-9a-f]+ R E 0x10000
|
43 |
|
|
LOAD +0x0+1[0-9a-f]+ 0x60+1[0-9a-f]+ 0x60+1[0-9a-f]+ 0x0+0[0-9a-f]+ 0x0+0[0-9a-f]+ RW +0x10000
|
44 |
|
|
DYNAMIC +0x0+1[0-9a-f]+ 0x60+1[0-9a-f]+ 0x60+1[0-9a-f]+ 0x0+150 0x0+150 RW +0x8
|
45 |
|
|
TLS +0x0+1[0-9a-f]+ 0x60+1[0-9a-f]+ 0x60+1[0-9a-f]+ 0x0+60 0x0+a0 R +0x4
|
46 |
|
|
IA_64_UNWIND .* R +0x8
|
47 |
|
|
#...
|
48 |
|
|
|
49 |
|
|
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 3 entries:
|
50 |
|
|
+Offset +Info +Type +Symbol's Value Symbol's Name \+ Addend
|
51 |
|
|
[0-9a-f ]+R_IA64_TPREL64LSB +0+ sG2 \+ 0
|
52 |
|
|
[0-9a-f ]+R_IA64_DTPMOD64LSB +0+ sG1 \+ 0
|
53 |
|
|
[0-9a-f ]+R_IA64_DTPREL64LSB +0+ sG1 \+ 0
|
54 |
|
|
|
55 |
|
|
Relocation section '.rela.IA_64.pltoff' at offset 0x[0-9a-f]+ contains 1 entries:
|
56 |
|
|
+Offset +Info +Type +Symbol's Value Symbol's Name \+ Addend
|
57 |
|
|
[0-9a-f ]+R_IA64_IPLTLSB +0+ __tls_get_addr \+ 0
|
58 |
|
|
|
59 |
|
|
Symbol table '\.dynsym' contains [0-9]+ entries:
|
60 |
|
|
+Num: +Value +Size Type +Bind +Vis +Ndx Name
|
61 |
|
|
.* NOTYPE +LOCAL +DEFAULT +UND *
|
62 |
|
|
.* TLS +GLOBAL DEFAULT +UND sG2
|
63 |
|
|
.* FUNC +GLOBAL DEFAULT +UND __tls_get_addr
|
64 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS __bss_start
|
65 |
|
|
.* TLS +GLOBAL DEFAULT +UND sG1
|
66 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
|
67 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS _end
|
68 |
|
|
|
69 |
|
|
Symbol table '\.symtab' contains [0-9]+ entries:
|
70 |
|
|
+Num: +Value +Size Type +Bind +Vis +Ndx Name
|
71 |
|
|
.* NOTYPE +LOCAL +DEFAULT +UND *
|
72 |
|
|
.* SECTION LOCAL +DEFAULT +1 *
|
73 |
|
|
.* SECTION LOCAL +DEFAULT +2 *
|
74 |
|
|
.* SECTION LOCAL +DEFAULT +3 *
|
75 |
|
|
.* SECTION LOCAL +DEFAULT +4 *
|
76 |
|
|
.* SECTION LOCAL +DEFAULT +5 *
|
77 |
|
|
.* SECTION LOCAL +DEFAULT +6 *
|
78 |
|
|
.* SECTION LOCAL +DEFAULT +7 *
|
79 |
|
|
.* SECTION LOCAL +DEFAULT +8 *
|
80 |
|
|
.* SECTION LOCAL +DEFAULT +9 *
|
81 |
|
|
.* SECTION LOCAL +DEFAULT +10 *
|
82 |
|
|
.* SECTION LOCAL +DEFAULT +11 *
|
83 |
|
|
.* SECTION LOCAL +DEFAULT +12 *
|
84 |
|
|
.* SECTION LOCAL +DEFAULT +13 *
|
85 |
|
|
.* SECTION LOCAL +DEFAULT +14 *
|
86 |
|
|
.* SECTION LOCAL +DEFAULT +15 *
|
87 |
|
|
.* TLS +LOCAL +DEFAULT +11 sl1
|
88 |
|
|
.* TLS +LOCAL +DEFAULT +11 sl2
|
89 |
|
|
.* TLS +LOCAL +DEFAULT +11 sl3
|
90 |
|
|
.* TLS +LOCAL +DEFAULT +11 sl4
|
91 |
|
|
.* TLS +LOCAL +DEFAULT +11 sl5
|
92 |
|
|
.* TLS +LOCAL +DEFAULT +11 sl6
|
93 |
|
|
.* TLS +LOCAL +DEFAULT +11 sl7
|
94 |
|
|
.* TLS +LOCAL +DEFAULT +11 sl8
|
95 |
|
|
.* TLS +LOCAL +DEFAULT +12 bl1
|
96 |
|
|
.* TLS +LOCAL +DEFAULT +12 bl2
|
97 |
|
|
.* TLS +LOCAL +DEFAULT +12 bl3
|
98 |
|
|
.* TLS +LOCAL +DEFAULT +12 bl4
|
99 |
|
|
.* TLS +LOCAL +DEFAULT +12 bl5
|
100 |
|
|
.* TLS +LOCAL +DEFAULT +12 bl6
|
101 |
|
|
.* TLS +LOCAL +DEFAULT +12 bl7
|
102 |
|
|
.* TLS +LOCAL +DEFAULT +12 bl8
|
103 |
|
|
.* OBJECT +LOCAL +HIDDEN +13 _DYNAMIC
|
104 |
|
|
.* OBJECT +LOCAL +HIDDEN +14 _GLOBAL_OFFSET_TABLE_
|
105 |
|
|
.* TLS +GLOBAL DEFAULT +11 sg8
|
106 |
|
|
.* TLS +GLOBAL DEFAULT +12 bg8
|
107 |
|
|
.* TLS +GLOBAL DEFAULT +12 bg6
|
108 |
|
|
.* TLS +GLOBAL DEFAULT +12 bg3
|
109 |
|
|
.* TLS +GLOBAL DEFAULT +11 sg3
|
110 |
|
|
.* TLS +GLOBAL HIDDEN +11 sh3
|
111 |
|
|
.* TLS +GLOBAL DEFAULT +UND sG2
|
112 |
|
|
.* TLS +GLOBAL DEFAULT +11 sg4
|
113 |
|
|
.* TLS +GLOBAL DEFAULT +11 sg5
|
114 |
|
|
.* TLS +GLOBAL DEFAULT +12 bg5
|
115 |
|
|
.* FUNC +GLOBAL DEFAULT +UND __tls_get_addr
|
116 |
|
|
.* TLS +GLOBAL HIDDEN +11 sh7
|
117 |
|
|
.* TLS +GLOBAL HIDDEN +11 sh8
|
118 |
|
|
.* TLS +GLOBAL DEFAULT +11 sg1
|
119 |
|
|
.* FUNC +GLOBAL DEFAULT +8 _start
|
120 |
|
|
.* TLS +GLOBAL HIDDEN +11 sh4
|
121 |
|
|
.* TLS +GLOBAL DEFAULT +12 bg7
|
122 |
|
|
.* TLS +GLOBAL HIDDEN +11 sh5
|
123 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS __bss_start
|
124 |
|
|
.* FUNC +GLOBAL DEFAULT +8 fn2
|
125 |
|
|
.* TLS +GLOBAL DEFAULT +11 sg2
|
126 |
|
|
.* TLS +GLOBAL DEFAULT +UND sG1
|
127 |
|
|
.* TLS +GLOBAL HIDDEN +11 sh1
|
128 |
|
|
.* TLS +GLOBAL DEFAULT +11 sg6
|
129 |
|
|
.* TLS +GLOBAL DEFAULT +11 sg7
|
130 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS _edata
|
131 |
|
|
.* NOTYPE +GLOBAL DEFAULT +ABS _end
|
132 |
|
|
.* TLS +GLOBAL HIDDEN +11 sh2
|
133 |
|
|
.* TLS +GLOBAL HIDDEN +11 sh6
|
134 |
|
|
.* TLS +GLOBAL DEFAULT +12 bg2
|
135 |
|
|
.* TLS +GLOBAL DEFAULT +12 bg1
|
136 |
|
|
.* TLS +GLOBAL DEFAULT +12 bg4
|