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
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: 0x400440
Start of program headers: 64 (bytes into file)
Start of section headers: 5976 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 8
Size of section headers: 64 (bytes)
Number of section headers: 29
Section header string table index: 26
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 0000000000400200 00000200
000000000000001c 0000000000000000 A 0 0 1
[ 2] .note.ABI-tag NOTE 000000000040021c 0000021c
0000000000000020 0000000000000000 A 0 0 4
[ 3] .hash HASH 0000000000400240 00000240
0000000000000028 0000000000000004 A 4 0 8
[ 4] .dynsym DYNSYM 0000000000400268 00000268
0000000000000078 0000000000000018 A 5 1 8
[ 5] .dynstr STRTAB 00000000004002e0 000002e0
0000000000000044 0000000000000000 A 0 0 1
[ 6] .gnu.version VERSYM 0000000000400324 00000324
000000000000000a 0000000000000002 A 4 0 2
[ 7] .gnu.version_r VERNEED 0000000000400330 00000330
0000000000000020 0000000000000000 A 5 1 8
[ 8] .rela.dyn RELA 0000000000400350 00000350
0000000000000018 0000000000000018 A 4 0 8
[ 9] .rela.plt RELA 0000000000400368 00000368
0000000000000060 0000000000000018 AI 4 11 8
[10] .init PROGBITS 00000000004003c8 000003c8
000000000000001a 0000000000000000 AX 0 0 4
[11] .plt PROGBITS 00000000004003f0 000003f0
0000000000000050 0000000000000010 AX 0 0 16
[12] .text PROGBITS 0000000000400440 00000440
0000000000000302 0000000000000000 AX 0 0 16
[13] .fini PROGBITS 0000000000400744 00000744
0000000000000009 0000000000000000 AX 0 0 4
[14] .rodata PROGBITS 0000000000400750 00000750
0000000000000018 0000000000000000 A 0 0 4
[15] .eh_frame_hdr PROGBITS 0000000000400768 00000768
000000000000004c 0000000000000000 A 0 0 4
[16] .eh_frame PROGBITS 00000000004007b8 000007b8
000000000000015c 0000000000000000 A 0 0 8
[17] .init_array INIT_ARRAY 0000000000600918 00000918
0000000000000008 0000000000000000 WA 0 0 8
[18] .fini_array FINI_ARRAY 0000000000600920 00000920
0000000000000008 0000000000000000 WA 0 0 8
[19] .jcr PROGBITS 0000000000600928 00000928
0000000000000008 0000000000000000 WA 0 0 8
[20] .dynamic DYNAMIC 0000000000600930 00000930
00000000000001d0 0000000000000010 WA 5 0 8
[21] .got PROGBITS 0000000000600b00 00000b00
0000000000000008 0000000000000008 WA 0 0 8
[22] .got.plt PROGBITS 0000000000600b08 00000b08
0000000000000038 0000000000000008 WA 0 0 8
[23] .data PROGBITS 0000000000600b40 00000b40
00000000000001e5 0000000000000000 WA 0 0 64
[24] .bss NOBITS 0000000000600d25 00000d25
0000000000000003 0000000000000000 WA 0 0 1
[25] .comment PROGBITS 0000000000000000 00000d25
000000000000002d 0000000000000001 MS 0 0 1
[26] .shstrtab STRTAB 0000000000000000 00000d52
00000000000000f1 0000000000000000 0 0 1
[27] .symtab SYMTAB 0000000000000000 00000e48
00000000000006a8 0000000000000018 28 44 8
[28] .strtab STRTAB 0000000000000000 000014f0
0000000000000262 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 0x0000000000400040 0x0000000000400040
0x00000000000001c0 0x00000000000001c0 R E 0x8
INTERP 0x0000000000000200 0x0000000000400200 0x0000000000400200
0x000000000000001c 0x000000000000001c R 0x1
[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000
0x0000000000000914 0x0000000000000914 R E 0x200000
LOAD 0x0000000000000918 0x0000000000600918 0x0000000000600918
0x000000000000040d 0x0000000000000410 RW 0x200000
DYNAMIC 0x0000000000000930 0x0000000000600930 0x0000000000600930
0x00000000000001d0 0x00000000000001d0 RW 0x8
NOTE 0x000000000000021c 0x000000000040021c 0x000000000040021c
0x0000000000000020 0x0000000000000020 R 0x4
GNU_EH_FRAME 0x0000000000000768 0x0000000000400768 0x0000000000400768
0x000000000000004c 0x000000000000004c R 0x4
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 0x10
Section to Segment mapping:
Segment Sections...
00
01 .interp
02 .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame_hdr .eh_frame
03 .init_array .fini_array .jcr .dynamic .got .got.plt .data .bss
04 .dynamic
05 .note.ABI-tag
06 .eh_frame_hdr
07
Dynamic section at offset 0x930 contains 24 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000c (INIT) 0x4003c8
0x000000000000000d (FINI) 0x400744
0x0000000000000019 (INIT_ARRAY) 0x600918
0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
0x000000000000001a (FINI_ARRAY) 0x600920
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000000000000004 (HASH) 0x400240
0x0000000000000005 (STRTAB) 0x4002e0
0x0000000000000006 (SYMTAB) 0x400268
0x000000000000000a (STRSZ) 68 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000015 (DEBUG) 0x0
0x0000000000000003 (PLTGOT) 0x600b08
0x0000000000000002 (PLTRELSZ) 96 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x400368
0x0000000000000007 (RELA) 0x400350
0x0000000000000008 (RELASZ) 24 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x400330
0x000000006fffffff (VERNEEDNUM) 1
0x000000006ffffff0 (VERSYM) 0x400324
0x0000000000000000 (NULL) 0x0