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
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 (Shared object file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x0
Start of program headers: 64 (bytes into file)
Start of section headers: 45752 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 11
Size of section headers: 64 (bytes)
Number of section headers: 30
Section header string table index: 29
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
[ 1] .note.gnu.pr[...] NOTE 00000000000002a8 000002a8
0000000000000020 0000000000000000 A 0 0 8
[ 2] .note.gnu.bu[...] NOTE 00000000000002c8 000002c8
0000000000000024 0000000000000000 A 0 0 4
[ 3] .gnu.hash GNU_HASH 00000000000002f0 000002f0
000000000000016c 0000000000000000 A 4 0 8
[ 4] .dynsym DYNSYM 0000000000000460 00000460
0000000000000780 0000000000000018 A 5 1 8
[ 5] .dynstr STRTAB 0000000000000be0 00000be0
00000000000004e0 0000000000000000 A 0 0 1
[ 6] .gnu.version VERSYM 00000000000010c0 000010c0
00000000000000a0 0000000000000002 A 4 0 2
[ 7] .gnu.version_d VERDEF 0000000000001160 00001160
00000000000000a4 0000000000000000 A 5 5 8
[ 8] .gnu.version_r VERNEED 0000000000001208 00001208
0000000000000060 0000000000000000 A 5 1 8
[ 9] .rela.dyn RELA 0000000000001268 00001268
0000000000000300 0000000000000018 A 4 0 8
[10] .rela.plt RELA 0000000000001568 00001568
0000000000000318 0000000000000018 AI 4 25 8
[11] .init PROGBITS 0000000000002000 00002000
000000000000001b 0000000000000000 AX 0 0 4
[12] .plt PROGBITS 0000000000002020 00002020
0000000000000220 0000000000000010 AX 0 0 16
[13] .plt.got PROGBITS 0000000000002240 00002240
0000000000000010 0000000000000010 AX 0 0 16
[14] .plt.sec PROGBITS 0000000000002250 00002250
0000000000000210 0000000000000010 AX 0 0 16
[15] .text PROGBITS 0000000000002460 00002460
0000000000005c1a 0000000000000000 AX 0 0 16
[16] .fini PROGBITS 000000000000807c 0000807c
000000000000000d 0000000000000000 AX 0 0 4
[17] .rodata PROGBITS 0000000000009000 00009000
0000000000000420 0000000000000000 A 0 0 16
[18] .eh_frame_hdr PROGBITS 0000000000009420 00009420
00000000000001e4 0000000000000000 A 0 0 4
[19] .eh_frame PROGBITS 0000000000009608 00009608
0000000000000870 0000000000000000 A 0 0 8
[20] .init_array INIT_ARRAY 000000000000ac70 0000ac70
0000000000000008 0000000000000008 WA 0 0 8
[21] .fini_array FINI_ARRAY 000000000000ac78 0000ac78
0000000000000008 0000000000000008 WA 0 0 8
[22] .data.rel.ro PROGBITS 000000000000ac80 0000ac80
0000000000000138 0000000000000000 WA 0 0 32
[23] .dynamic DYNAMIC 000000000000adb8 0000adb8
00000000000001f0 0000000000000010 WA 5 0 8
[24] .got PROGBITS 000000000000afa8 0000afa8
0000000000000028 0000000000000008 WA 0 0 8
[25] .got.plt PROGBITS 000000000000afe8 0000afe8
0000000000000120 0000000000000008 WA 0 0 8
[26] .data PROGBITS 000000000000b110 0000b110
0000000000000050 0000000000000000 WA 0 0 16
[27] .bss NOBITS 000000000000b160 0000b160
00000000000004b0 0000000000000000 WA 0 0 32
[28] .gnu_debuglink PROGBITS 0000000000000000 0000b160
0000000000000034 0000000000000000 0 0 4
[29] .shstrtab STRTAB 0000000000000000 0000b194
000000000000011f 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
LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000001880 0x0000000000001880 R 0x1000
LOAD 0x0000000000002000 0x0000000000002000 0x0000000000002000
0x0000000000006089 0x0000000000006089 R E 0x1000
LOAD 0x0000000000009000 0x0000000000009000 0x0000000000009000
0x0000000000000e78 0x0000000000000e78 R 0x1000
LOAD 0x000000000000ac70 0x000000000000ac70 0x000000000000ac70
0x00000000000004f0 0x00000000000009a0 RW 0x1000
DYNAMIC 0x000000000000adb8 0x000000000000adb8 0x000000000000adb8
0x00000000000001f0 0x00000000000001f0 RW 0x8
NOTE 0x00000000000002a8 0x00000000000002a8 0x00000000000002a8
0x0000000000000020 0x0000000000000020 R 0x8
NOTE 0x00000000000002c8 0x00000000000002c8 0x00000000000002c8
0x0000000000000024 0x0000000000000024 R 0x4
GNU_PROPERTY 0x00000000000002a8 0x00000000000002a8 0x00000000000002a8
0x0000000000000020 0x0000000000000020 R 0x8
GNU_EH_FRAME 0x0000000000009420 0x0000000000009420 0x0000000000009420
0x00000000000001e4 0x00000000000001e4 R 0x4
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 0x10
GNU_RELRO 0x000000000000ac70 0x000000000000ac70 0x000000000000ac70
0x0000000000000390 0x0000000000000390 R 0x1
Section to Segment mapping:
Segment Sections...
00 .note.gnu.property .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_d .gnu.version_r .rela.dyn .rela.plt
01 .init .plt .plt.got .plt.sec .text .fini
02 .rodata .eh_frame_hdr .eh_frame
03 .init_array .fini_array .data.rel.ro .dynamic .got .got.plt .data .bss
04 .dynamic
05 .note.gnu.property
06 .note.gnu.build-id
07 .note.gnu.property
08 .eh_frame_hdr
09
10 .init_array .fini_array .data.rel.ro .dynamic .got
Dynamic section at offset 0xadb8 contains 27 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000e (SONAME) Library soname: [libffi.so.8]
0x000000000000000c (INIT) 0x2000
0x000000000000000d (FINI) 0x807c
0x0000000000000019 (INIT_ARRAY) 0xac70
0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
0x000000000000001a (FINI_ARRAY) 0xac78
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x000000006ffffef5 (GNU_HASH) 0x2f0
0x0000000000000005 (STRTAB) 0xbe0
0x0000000000000006 (SYMTAB) 0x460
0x000000000000000a (STRSZ) 1248 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000003 (PLTGOT) 0xafe8
0x0000000000000002 (PLTRELSZ) 792 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x1568
0x0000000000000007 (RELA) 0x1268
0x0000000000000008 (RELASZ) 768 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffc (VERDEF) 0x1160
0x000000006ffffffd (VERDEFNUM) 5
0x000000006ffffffe (VERNEED) 0x1208
0x000000006fffffff (VERNEEDNUM) 1
0x000000006ffffff0 (VERSYM) 0x10c0
0x000000006ffffff9 (RELACOUNT) 24
0x0000000000000000 (NULL) 0x0