1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: DYN (Position-Independent Executable file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x10c0
Start of program headers: 64 (bytes into file)
Start of section headers: 14632 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 16
Size of section headers: 64 (bytes)
Number of section headers: 31
Section header string table index: 22
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
[ 1] .gnu.version VERSYM 0000000000000656 00000656
0000000000000022 0000000000000002 A 28 0 2
[ 2] .gnu.version_r VERNEED 0000000000000678 00000678
0000000000000040 0000000000000000 A 29 1 8
[ 3] .rela.dyn RELA 00000000000006b8 000006b8
0000000000000108 0000000000000018 A 28 0 8
[ 4] .rela.plt RELA 00000000000007c0 000007c0
00000000000000c0 0000000000000018 AI 28 16 8
[ 5] .init PROGBITS 0000000000001000 00001000
0000000000000017 0000000000000000 AX 0 0 4
[ 6] .plt PROGBITS 0000000000001020 00001020
0000000000000090 0000000000000010 AX 0 0 16
[ 7] .plt.got PROGBITS 00000000000010b0 000010b0
0000000000000008 0000000000000008 AX 0 0 8
[ 8] .text PROGBITS 00000000000010c0 000010c0
0000000000000487 0000000000000000 AX 0 0 16
[ 9] .fini PROGBITS 0000000000001548 00001548
0000000000000009 0000000000000000 AX 0 0 4
[10] .rodata PROGBITS 0000000000002000 00002000
0000000000000162 0000000000000000 A 0 0 8
[11] .eh_frame_hdr PROGBITS 0000000000002164 00002164
000000000000004c 0000000000000000 A 0 0 4
[12] .eh_frame PROGBITS 00000000000021b0 000021b0
000000000000012c 0000000000000000 A 0 0 8
[13] .init_array INIT_ARRAY 0000000000003dd0 00002dd0
0000000000000008 0000000000000008 WA 0 0 8
[14] .fini_array FINI_ARRAY 0000000000003dd8 00002dd8
0000000000000008 0000000000000008 WA 0 0 8
[15] .got PROGBITS 0000000000003fc0 00002fc0
0000000000000028 0000000000000008 WA 0 0 8
[16] .got.plt PROGBITS 0000000000003fe8 00002fe8
0000000000000058 0000000000000008 WA 0 0 8
[17] .data PROGBITS 0000000000004040 00003040
0000000000000010 0000000000000000 WA 0 0 8
[18] .bss NOBITS 0000000000004060 00003050
00000000000000e0 0000000000000000 WA 0 0 32
[19] .comment PROGBITS 0000000000000000 00003050
000000000000001f 0000000000000001 MS 0 0 1
[20] .symtab SYMTAB 0000000000000000 00003070
00000000000004c8 0000000000000018 21 18 8
[21] .strtab STRTAB 0000000000000000 00003538
00000000000002d3 0000000000000000 0 0 1
[22] .shstrtab STRTAB 0000000000000000 0000380b
000000000000011a 0000000000000000 0 0 1
[23] .interp PROGBITS 0000000000005000 00005000
0000000000000017 0000000000000000 A 0 0 8
[24] .note.gnu.pr[...] NOTE 0000000000005018 00005018
0000000000000020 0000000000000000 A 0 0 8
[25] .note.gnu.bu[...] NOTE 0000000000005038 00005038
0000000000000024 0000000000000000 A 0 0 4
[26] .note.ABI-tag NOTE 0000000000005060 00005060
0000000000000020 0000000000000000 A 0 0 4
[27] .gnu.hash GNU_HASH 0000000000005080 00005080
0000000000000034 0000000000000000 A 28 0 8
[28] .dynsym DYNSYM 00000000000050b8 000050b8
0000000000000198 0000000000000018 A 29 1 8
[29] .dynstr STRTAB 0000000000006000 00006000
00000000000000e8 0000000000000000 A 0 0 8
[30] .dynamic DYNAMIC 00000000000060e8 000060e8
00000000000001f0 0000000000000010 WA 29 0 8
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
L (link order), O (extra OS processing required), G (group), T (TLS),
C (compressed), x (unknown), o (OS specific), E (exclude),
D (mbind), l (large), p (processor specific)
Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
PHDR 0x0000000000000040 0x0000000000000040 0x0000000000000040
0x0000000000000380 0x0000000000000380 R 0x8
LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000880 0x0000000000000880 R 0x1000
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 0x10
LOAD 0x0000000000001000 0x0000000000001000 0x0000000000001000
0x0000000000000551 0x0000000000000551 R E 0x1000
LOAD 0x0000000000002000 0x0000000000002000 0x0000000000002000
0x00000000000002dc 0x00000000000002dc R 0x1000
GNU_EH_FRAME 0x0000000000002164 0x0000000000002164 0x0000000000002164
0x000000000000004c 0x000000000000004c R 0x4
LOAD 0x0000000000002dd0 0x0000000000003dd0 0x0000000000003dd0
0x0000000000000280 0x0000000000000370 RW 0x1000
GNU_RELRO 0x0000000000002dd0 0x0000000000003dd0 0x0000000000003dd0
0x0000000000000230 0x0000000000000230 R 0x1
INTERP 0x0000000000005000 0x0000000000005000 0x0000000000005000
0x0000000000000017 0x0000000000000017 R 0x1
[Requesting program interpreter: ./ld-linux-x86-64.so.2]
LOAD 0x0000000000005000 0x0000000000005000 0x0000000000005000
0x0000000000000250 0x0000000000000250 RW 0x1000
NOTE 0x0000000000005018 0x0000000000005018 0x0000000000005018
0x0000000000000020 0x0000000000000020 R 0x8
GNU_PROPERTY 0x0000000000005018 0x0000000000005018 0x0000000000005018
0x0000000000000020 0x0000000000000020 R 0x8
NOTE 0x0000000000005038 0x0000000000005038 0x0000000000005038
0x0000000000000024 0x0000000000000024 R 0x4
NOTE 0x0000000000005060 0x0000000000005060 0x0000000000005060
0x0000000000000020 0x0000000000000020 R 0x4
LOAD 0x0000000000006000 0x0000000000006000 0x0000000000006000
0x00000000000002d8 0x00000000000002d8 RW 0x1000
DYNAMIC 0x00000000000060e8 0x00000000000060e8 0x00000000000060e8
0x00000000000001f0 0x00000000000001f0 RW 0x8
Section to Segment mapping:
Segment Sections...
00
01 .gnu.version .gnu.version_r .rela.dyn .rela.plt
02
03 .init .plt .plt.got .text .fini
04 .rodata .eh_frame_hdr .eh_frame
05 .eh_frame_hdr
06 .init_array .fini_array .got .got.plt .data .bss
07 .init_array .fini_array .got
08 .interp
09 .interp .note.gnu.property .note.gnu.build-id .note.ABI-tag .gnu.hash .dynsym
10 .note.gnu.property
11 .note.gnu.property
12 .note.gnu.build-id
13 .note.ABI-tag
14 .dynstr .dynamic
15 .dynamic
Dynamic section at offset 0x60e8 contains 27 entries:
Tag Type Name/Value
0x000000000000001d (RUNPATH) Library runpath: [./]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000c (INIT) 0x1000
0x000000000000000d (FINI) 0x1548
0x0000000000000019 (INIT_ARRAY) 0x3dd0
0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
0x000000000000001a (FINI_ARRAY) 0x3dd8
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x000000006ffffef5 (GNU_HASH) 0x5080
0x0000000000000005 (STRTAB) 0x6000
0x0000000000000006 (SYMTAB) 0x50b8
0x000000000000000a (STRSZ) 232 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000015 (DEBUG) 0x0
0x0000000000000003 (PLTGOT) 0x3fe8
0x0000000000000002 (PLTRELSZ) 192 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x7c0
0x0000000000000007 (RELA) 0x6b8
0x0000000000000008 (RELASZ) 264 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffb (FLAGS_1) Flags: PIE
0x000000006ffffffe (VERNEED) 0x678
0x000000006fffffff (VERNEEDNUM) 1
0x000000006ffffff0 (VERSYM) 0x656
0x000000006ffffff9 (RELACOUNT) 3
0x0000000000000000 (NULL) 0x0