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
178
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: 0x10e0
Start of program headers: 64 (bytes into file)
Start of section headers: 18568 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 13
Size of section headers: 64 (bytes)
Number of section headers: 36
Section header string table index: 35
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
[ 1] .interp PROGBITS 0000000000000318 00000318
000000000000001c 0000000000000000 A 0 0 1
[ 2] .note.gnu.pr[...] NOTE 0000000000000338 00000338
0000000000000020 0000000000000000 A 0 0 8
[ 3] .note.gnu.bu[...] NOTE 0000000000000358 00000358
0000000000000024 0000000000000000 A 0 0 4
[ 4] .note.ABI-tag NOTE 000000000000037c 0000037c
0000000000000020 0000000000000000 A 0 0 4
[ 5] .gnu.hash GNU_HASH 00000000000003a0 000003a0
0000000000000034 0000000000000000 A 6 0 8
[ 6] .dynsym DYNSYM 00000000000003d8 000003d8
00000000000001e0 0000000000000018 A 7 1 8
[ 7] .dynstr STRTAB 00000000000005b8 000005b8
00000000000000f4 0000000000000000 A 0 0 1
[ 8] .gnu.version VERSYM 00000000000006ac 000006ac
0000000000000028 0000000000000002 A 6 0 2
[ 9] .gnu.version_r VERNEED 00000000000006d8 000006d8
0000000000000040 0000000000000000 A 7 1 8
[10] .rela.dyn RELA 0000000000000718 00000718
0000000000000120 0000000000000018 A 6 0 8
[11] .rela.plt RELA 0000000000000838 00000838
00000000000000f0 0000000000000018 AI 6 23 8
[12] .init PROGBITS 0000000000001000 00001000
0000000000000017 0000000000000000 AX 0 0 4
[13] .plt PROGBITS 0000000000001020 00001020
00000000000000b0 0000000000000010 AX 0 0 16
[14] .plt.got PROGBITS 00000000000010d0 000010d0
0000000000000008 0000000000000008 AX 0 0 8
[15] .text PROGBITS 00000000000010e0 000010e0
000000000000054f 0000000000000000 AX 0 0 16
[16] .fini PROGBITS 0000000000001630 00001630
0000000000000009 0000000000000000 AX 0 0 4
[17] .rodata PROGBITS 0000000000002000 00002000
0000000000000069 0000000000000000 A 0 0 4
[18] .eh_frame_hdr PROGBITS 000000000000206c 0000206c
0000000000000064 0000000000000000 A 0 0 4
[19] .eh_frame PROGBITS 00000000000020d0 000020d0
0000000000000188 0000000000000000 A 0 0 8
[20] .init_array INIT_ARRAY 0000000000003d68 00002d68
0000000000000008 0000000000000008 WA 0 0 8
[21] .fini_array FINI_ARRAY 0000000000003d70 00002d70
0000000000000008 0000000000000008 WA 0 0 8
[22] .dynamic DYNAMIC 0000000000003d78 00002d78
00000000000001f0 0000000000000010 WA 7 0 8
[23] .got PROGBITS 0000000000003f68 00002f68
0000000000000098 0000000000000008 WA 0 0 8
[24] .data PROGBITS 0000000000004000 00003000
0000000000000010 0000000000000000 WA 0 0 8
[25] .bss NOBITS 0000000000004020 00003010
00000000000000c8 0000000000000000 WA 0 0 32
[26] .comment PROGBITS 0000000000000000 00003010
000000000000005a 0000000000000001 MS 0 0 1
[27] .debug_aranges PROGBITS 0000000000000000 0000306a
0000000000000030 0000000000000000 0 0 1
[28] .debug_info PROGBITS 0000000000000000 0000309a
000000000000064a 0000000000000000 0 0 1
[29] .debug_abbrev PROGBITS 0000000000000000 000036e4
00000000000001fc 0000000000000000 0 0 1
[30] .debug_line PROGBITS 0000000000000000 000038e0
0000000000000159 0000000000000000 0 0 1
[31] .debug_str PROGBITS 0000000000000000 00003a39
000000000000033f 0000000000000001 MS 0 0 1
[32] .debug_line_str PROGBITS 0000000000000000 00003d78
0000000000000122 0000000000000001 MS 0 0 1
[33] .symtab SYMTAB 0000000000000000 00003ea0
0000000000000570 0000000000000018 34 18 8
[34] .strtab STRTAB 0000000000000000 00004410
0000000000000313 0000000000000000 0 0 1
[35] .shstrtab STRTAB 0000000000000000 00004723
0000000000000161 0000000000000000 0 0 1
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
0x00000000000002d8 0x00000000000002d8 R 0x8
INTERP 0x0000000000000318 0x0000000000000318 0x0000000000000318
0x000000000000001c 0x000000000000001c R 0x1
[Requesting program interpreter: ./ld-linux-x86-64.so.2]
LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000928 0x0000000000000928 R 0x1000
LOAD 0x0000000000001000 0x0000000000001000 0x0000000000001000
0x0000000000000639 0x0000000000000639 R E 0x1000
LOAD 0x0000000000002000 0x0000000000002000 0x0000000000002000
0x0000000000000258 0x0000000000000258 R 0x1000
LOAD 0x0000000000002d68 0x0000000000003d68 0x0000000000003d68
0x00000000000002a8 0x0000000000000380 RW 0x1000
DYNAMIC 0x0000000000002d78 0x0000000000003d78 0x0000000000003d78
0x00000000000001f0 0x00000000000001f0 RW 0x8
NOTE 0x0000000000000338 0x0000000000000338 0x0000000000000338
0x0000000000000020 0x0000000000000020 R 0x8
NOTE 0x0000000000000358 0x0000000000000358 0x0000000000000358
0x0000000000000044 0x0000000000000044 R 0x4
GNU_PROPERTY 0x0000000000000338 0x0000000000000338 0x0000000000000338
0x0000000000000020 0x0000000000000020 R 0x8
GNU_EH_FRAME 0x000000000000206c 0x000000000000206c 0x000000000000206c
0x0000000000000064 0x0000000000000064 R 0x4
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 0x10
GNU_RELRO 0x0000000000002d68 0x0000000000003d68 0x0000000000003d68
0x0000000000000298 0x0000000000000298 R 0x1
Section to Segment mapping:
Segment Sections...
00
01 .interp
02 .interp .note.gnu.property .note.gnu.build-id .note.ABI-tag .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt
03 .init .plt .plt.got .text .fini
04 .rodata .eh_frame_hdr .eh_frame
05 .init_array .fini_array .dynamic .got .data .bss
06 .dynamic
07 .note.gnu.property
08 .note.gnu.build-id .note.ABI-tag
09 .note.gnu.property
10 .eh_frame_hdr
11
12 .init_array .fini_array .dynamic .got
Dynamic section at offset 0x2d78 contains 27 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000c (INIT) 0x1000
0x000000000000000d (FINI) 0x1630
0x0000000000000019 (INIT_ARRAY) 0x3d68
0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
0x000000000000001a (FINI_ARRAY) 0x3d70
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x000000006ffffef5 (GNU_HASH) 0x3a0
0x0000000000000005 (STRTAB) 0x5b8
0x0000000000000006 (SYMTAB) 0x3d8
0x000000000000000a (STRSZ) 244 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x000000000000001d (RUNPATH) 0xa18
0x0000000000000003 (PLTGOT) 0x3f68
0x0000000000000002 (PLTRELSZ) 240 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x838
0x0000000000000007 (RELA) 0x718
0x0000000000000008 (RELASZ) 288 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000000000001e (FLAGS) BIND_NOW
0x000000006ffffffb (FLAGS_1) Flags: NOW PIE
0x000000006ffffffe (VERNEED) 0x6d8
0x000000006fffffff (VERNEEDNUM) 1
0x000000006ffffff0 (VERSYM) 0x6ac
0x000000006ffffff9 (RELACOUNT) 3
0x0000000000000000 (NULL) 0x0