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
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: EXEC (Executable file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x4010b0
Start of program headers: 64 (bytes into file)
Start of section headers: 22416 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 15
Size of section headers: 64 (bytes)
Number of section headers: 31
Section header string table index: 30
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 00000000003fe388 00000388
0000000000000017 0000000000000000 A 0 0 8
[ 2] .note.gnu.pr[...] NOTE 00000000003fe3a8 000003a8
0000000000000030 0000000000000000 A 0 0 8
[ 3] .note.gnu.bu[...] NOTE 00000000003fe3d8 000003d8
0000000000000024 0000000000000000 A 0 0 4
[ 4] .note.ABI-tag NOTE 00000000003fe400 00000400
0000000000000020 0000000000000000 A 0 0 4
[ 5] .gnu.hash GNU_HASH 00000000003fe420 00000420
0000000000000030 0000000000000000 A 6 0 8
[ 6] .dynsym DYNSYM 00000000003fe450 00000450
00000000000000f0 0000000000000018 A 7 1 8
[ 7] .dynstr STRTAB 00000000003fe540 00000540
0000000000000092 0000000000000000 A 0 0 8
[ 8] .gnu.version VERSYM 0000000000400556 00002556
0000000000000014 0000000000000002 A 6 0 2
[ 9] .gnu.version_r VERNEED 0000000000400570 00002570
0000000000000040 0000000000000000 A 7 1 8
[10] .rela.dyn RELA 00000000004005b0 000025b0
0000000000000078 0000000000000018 A 6 0 8
[11] .rela.plt RELA 0000000000400628 00002628
0000000000000060 0000000000000018 AI 6 24 8
[12] .init PROGBITS 0000000000401000 00003000
000000000000001b 0000000000000000 AX 0 0 4
[13] .plt PROGBITS 0000000000401020 00003020
0000000000000050 0000000000000010 AX 0 0 16
[14] .plt.sec PROGBITS 0000000000401070 00003070
0000000000000040 0000000000000010 AX 0 0 16
[15] .text PROGBITS 00000000004010b0 000030b0
00000000000001be 0000000000000000 AX 0 0 16
[16] .fini PROGBITS 0000000000401270 00003270
000000000000000d 0000000000000000 AX 0 0 4
[17] .rodata PROGBITS 0000000000402000 00004000
000000000000003d 0000000000000000 A 0 0 4
[18] .eh_frame_hdr PROGBITS 0000000000402040 00004040
000000000000003c 0000000000000000 A 0 0 4
[19] .eh_frame PROGBITS 0000000000402080 00004080
00000000000000c4 0000000000000000 A 0 0 8
[20] .init_array INIT_ARRAY 0000000000403e10 00004e10
0000000000000008 0000000000000008 WA 0 0 8
[21] .fini_array FINI_ARRAY 0000000000403e18 00004e18
0000000000000008 0000000000000008 WA 0 0 8
[22] .dynamic DYNAMIC 0000000000403e20 00004e20
00000000000001d0 0000000000000010 WA 7 0 8
[23] .got PROGBITS 0000000000403ff0 00004ff0
0000000000000010 0000000000000008 WA 0 0 8
[24] .got.plt PROGBITS 0000000000404000 00005000
0000000000000038 0000000000000008 WA 0 0 8
[25] .data PROGBITS 0000000000404038 00005038
0000000000000010 0000000000000000 WA 0 0 8
[26] .bss NOBITS 0000000000404060 00005048
0000000000000030 0000000000000000 WA 0 0 32
[27] .comment PROGBITS 0000000000000000 00005048
000000000000002b 0000000000000001 MS 0 0 1
[28] .symtab SYMTAB 0000000000000000 00005078
00000000000003d8 0000000000000018 29 18 8
[29] .strtab STRTAB 0000000000000000 00005450
000000000000021b 0000000000000000 0 0 1
[30] .shstrtab STRTAB 0000000000000000 0000566b
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
PHDR 0x0000000000000040 0x00000000003fe040 0x00000000003fe040
0x0000000000000348 0x0000000000000348 R 0x8
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 0x10
LOAD 0x0000000000000000 0x00000000003fe000 0x00000000003fe000
0x00000000000005d8 0x00000000000005d8 RW 0x1000
INTERP 0x0000000000000388 0x00000000003fe388 0x00000000003fe388
0x0000000000000017 0x0000000000000017 R 0x1
[Requesting program interpreter: ./ld-linux-x86-64.so.2]
NOTE 0x00000000000003a8 0x00000000003fe3a8 0x00000000003fe3a8
0x0000000000000030 0x0000000000000030 R 0x8
GNU_PROPERTY 0x00000000000003a8 0x00000000003fe3a8 0x00000000003fe3a8
0x0000000000000030 0x0000000000000030 R 0x8
NOTE 0x00000000000003d8 0x00000000003fe3d8 0x00000000003fe3d8
0x0000000000000024 0x0000000000000024 R 0x4
NOTE 0x0000000000000400 0x00000000003fe400 0x00000000003fe400
0x0000000000000020 0x0000000000000020 R 0x4
LOAD 0x0000000000002556 0x0000000000400556 0x0000000000400556
0x0000000000000132 0x0000000000000132 R 0x1000
LOAD 0x0000000000003000 0x0000000000401000 0x0000000000401000
0x000000000000027d 0x000000000000027d R E 0x1000
LOAD 0x0000000000004000 0x0000000000402000 0x0000000000402000
0x0000000000000144 0x0000000000000144 R 0x1000
GNU_EH_FRAME 0x0000000000004040 0x0000000000402040 0x0000000000402040
0x000000000000003c 0x000000000000003c R 0x4
LOAD 0x0000000000004e10 0x0000000000403e10 0x0000000000403e10
0x0000000000000238 0x0000000000000280 RW 0x1000
GNU_RELRO 0x0000000000004e10 0x0000000000403e10 0x0000000000403e10
0x00000000000001f0 0x00000000000001f0 R 0x1
DYNAMIC 0x0000000000004e20 0x0000000000403e20 0x0000000000403e20
0x00000000000001d0 0x00000000000001d0 RW 0x8
Section to Segment mapping:
Segment Sections...
00
01
02 .interp .note.gnu.property .note.gnu.build-id .note.ABI-tag .gnu.hash .dynsym .dynstr
03 .interp
04 .note.gnu.property
05 .note.gnu.property
06 .note.gnu.build-id
07 .note.ABI-tag
08 .gnu.version .gnu.version_r .rela.dyn .rela.plt
09 .init .plt .plt.sec .text .fini
10 .rodata .eh_frame_hdr .eh_frame
11 .eh_frame_hdr
12 .init_array .fini_array .dynamic .got .got.plt .data .bss
13 .init_array .fini_array .dynamic .got
14 .dynamic
Dynamic section at offset 0x4e20 contains 24 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [./libc.so.6]
0x000000000000000c (INIT) 0x401000
0x000000000000000d (FINI) 0x401270
0x0000000000000019 (INIT_ARRAY) 0x403e10
0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
0x000000000000001a (FINI_ARRAY) 0x403e18
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x000000006ffffef5 (GNU_HASH) 0x3fe420
0x0000000000000005 (STRTAB) 0x3fe540
0x0000000000000006 (SYMTAB) 0x3fe450
0x000000000000000a (STRSZ) 146 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000015 (DEBUG) 0x0
0x0000000000000003 (PLTGOT) 0x404000
0x0000000000000002 (PLTRELSZ) 96 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x400628
0x0000000000000007 (RELA) 0x4005b0
0x0000000000000008 (RELASZ) 120 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x400570
0x000000006fffffff (VERNEEDNUM) 1
0x000000006ffffff0 (VERSYM) 0x400556
0x0000000000000000 (NULL) 0x0