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
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: 0x4f80
Start of program headers: 64 (bytes into file)
Start of section headers: 127936 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 17
Size of section headers: 64 (bytes)
Number of section headers: 28
Section header string table index: 19
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 0000000000001422 00001422
00000000000000e6 0000000000000002 A 24 0 2
[ 2] .gnu.version_r VERNEED 0000000000001508 00001508
00000000000000e0 0000000000000000 A 25 1 8
[ 3] .rela.dyn RELA 00000000000015e8 000015e8
0000000000000a68 0000000000000018 A 24 0 8
[ 4] .relr.dyn RELR 0000000000002050 00002050
0000000000000050 0000000000000008 A 0 0 8
[ 5] .init PROGBITS 0000000000003000 00003000
000000000000001b 0000000000000000 AX 0 0 4
[ 6] .text PROGBITS 0000000000003020 00003020
0000000000012db3 0000000000000000 AX 0 0 16
[ 7] .fini PROGBITS 0000000000015dd4 00015dd4
000000000000000d 0000000000000000 AX 0 0 4
[ 8] .rodata PROGBITS 0000000000016000 00016000
00000000000051a0 0000000000000000 A 0 0 32
[ 9] .eh_frame_hdr PROGBITS 000000000001b1a0 0001b1a0
0000000000000594 0000000000000000 A 0 0 4
[10] .eh_frame PROGBITS 000000000001b738 0001b738
00000000000020f8 0000000000000000 A 0 0 8
[11] .init_array INIT_ARRAY 000000000001ef70 0001df70
0000000000000008 0000000000000008 WA 0 0 8
[12] .fini_array FINI_ARRAY 000000000001ef78 0001df78
0000000000000008 0000000000000008 WA 0 0 8
[13] .data.rel.ro PROGBITS 000000000001ef80 0001df80
0000000000000af8 0000000000000000 WA 0 0 32
[14] .got PROGBITS 000000000001fc68 0001ec68
0000000000000390 0000000000000008 WA 0 0 8
[15] .data PROGBITS 0000000000020000 0001f000
0000000000000278 0000000000000000 WA 0 0 32
[16] .bss NOBITS 0000000000020280 0001f278
00000000000012c0 0000000000000000 WA 0 0 32
[17] .comment PROGBITS 0000000000000000 0001f278
000000000000001b 0000000000000001 MS 0 0 1
[18] .gnu_debuglink PROGBITS 0000000000000000 0001f294
0000000000000010 0000000000000000 0 0 4
[19] .shstrtab STRTAB 0000000000000000 0001f2a4
0000000000000119 0000000000000000 0 0 1
[20] .note.gnu.pr[...] NOTE 0000000000022018 00020018
0000000000000050 0000000000000000 A 0 0 8
[21] .note.gnu.bu[...] NOTE 0000000000022068 00020068
0000000000000024 0000000000000000 A 0 0 4
[22] .note.ABI-tag NOTE 0000000000022090 00020090
0000000000000020 0000000000000000 A 0 0 4
[23] .gnu.hash GNU_HASH 00000000000220b0 000200b0
0000000000000024 0000000000000000 A 24 0 8
[24] .dynsym DYNSYM 00000000000220d8 000200d8
0000000000000ac8 0000000000000018 A 25 1 8
[25] .dynstr STRTAB 0000000000023000 00021000
0000000000000563 0000000000000000 A 0 0 8
[26] .dynamic DYNAMIC 0000000000023568 00021568
0000000000000200 0000000000000010 WA 25 0 8
[27] .interp PROGBITS 0000000000025000 00023000
0000000000000017 0000000000000000 A 0 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
0x00000000000003b8 0x00000000000003b8 R 0x8
LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x00000000000020a0 0x00000000000020a0 R 0x1000
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 0x10
LOAD 0x0000000000003000 0x0000000000003000 0x0000000000003000
0x0000000000012de1 0x0000000000012de1 R E 0x1000
LOAD 0x0000000000016000 0x0000000000016000 0x0000000000016000
0x0000000000007830 0x0000000000007830 R 0x1000
GNU_EH_FRAME 0x000000000001b1a0 0x000000000001b1a0 0x000000000001b1a0
0x0000000000000594 0x0000000000000594 R 0x4
LOAD 0x000000000001df70 0x000000000001ef70 0x000000000001ef70
0x0000000000001308 0x00000000000025d0 RW 0x1000
GNU_RELRO 0x000000000001df70 0x000000000001ef70 0x000000000001ef70
0x0000000000001090 0x0000000000001090 R 0x1
LOAD 0x0000000000020000 0x0000000000022000 0x0000000000022000
0x0000000000000ba0 0x0000000000000ba0 RW 0x1000
NOTE 0x0000000000020018 0x0000000000022018 0x0000000000022018
0x0000000000000050 0x0000000000000050 R 0x8
GNU_PROPERTY 0x0000000000020018 0x0000000000022018 0x0000000000022018
0x0000000000000050 0x0000000000000050 R 0x8
NOTE 0x0000000000020068 0x0000000000022068 0x0000000000022068
0x0000000000000024 0x0000000000000024 R 0x4
NOTE 0x0000000000020090 0x0000000000022090 0x0000000000022090
0x0000000000000020 0x0000000000000020 R 0x4
LOAD 0x0000000000021000 0x0000000000023000 0x0000000000023000
0x0000000000000768 0x0000000000000768 RW 0x1000
DYNAMIC 0x0000000000021568 0x0000000000023568 0x0000000000023568
0x0000000000000200 0x0000000000000200 RW 0x8
LOAD 0x0000000000022000 0x0000000000024000 0x0000000000024000
0x0000000000001018 0x0000000000001018 RW 0x1000
INTERP 0x0000000000023000 0x0000000000025000 0x0000000000025000
0x0000000000000017 0x0000000000000017 R 0x1
[Requesting program interpreter: ./ld-linux-x86-64.so.2]
Section to Segment mapping:
Segment Sections...
00
01 .gnu.version .gnu.version_r .rela.dyn .relr.dyn
02
03 .init .text .fini
04 .rodata .eh_frame_hdr .eh_frame
05 .eh_frame_hdr
06 .init_array .fini_array .data.rel.ro .got .data .bss
07 .init_array .fini_array .data.rel.ro .got
08 .note.gnu.property .note.gnu.build-id .note.ABI-tag .gnu.hash .dynsym
09 .note.gnu.property
10 .note.gnu.property
11 .note.gnu.build-id
12 .note.ABI-tag
13 .dynstr .dynamic
14 .dynamic
15 .interp
16 .interp
Dynamic section at offset 0x21568 contains 27 entries:
Tag Type Name/Value
0x000000000000001d (RUNPATH) Library runpath: [.]
0x0000000000000001 (NEEDED) Shared library: [libcap.so.2]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000c (INIT) 0x3000
0x000000000000000d (FINI) 0x15dd4
0x0000000000000019 (INIT_ARRAY) 0x1ef70
0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
0x000000000000001a (FINI_ARRAY) 0x1ef78
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x000000006ffffef5 (GNU_HASH) 0x220b0
0x0000000000000005 (STRTAB) 0x23000
0x0000000000000006 (SYMTAB) 0x220d8
0x000000000000000a (STRSZ) 1379 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000015 (DEBUG) 0x0
0x0000000000000007 (RELA) 0x15e8
0x0000000000000008 (RELASZ) 2664 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000000000001e (FLAGS) BIND_NOW
0x000000006ffffffb (FLAGS_1) Flags: NOW PIE
0x000000006ffffffe (VERNEED) 0x1508
0x000000006fffffff (VERNEEDNUM) 1
0x000000006ffffff0 (VERSYM) 0x1422
0x0000000000000024 (RELR) 0x2050
0x0000000000000023 (RELRSZ) 80 (bytes)
0x0000000000000025 (RELRENT) 8 (bytes)
0x0000000000000000 (NULL) 0x0