elfDemo.rel: 文件格式 elf64
-
x86
-
64
elfDemo.rel
体系结构:i386:x86
-
64
, 标志
0x00000011
:
HAS_RELOC, HAS_SYMS
起始地址
0x0000000000000000
节:
Idx Name Size VMA LMA
File
off Algn
0
.text
0000005b
0000000000000000
0000000000000000
00000040
2
*
*
0
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
1
.data
00000008
0000000000000000
0000000000000000
0000009c
2
*
*
2
CONTENTS, ALLOC, LOAD, DATA
2
.bss
00000008
0000000000000000
0000000000000000
000000a4
2
*
*
2
ALLOC
3
.rodata
00000004
0000000000000000
0000000000000000
000000a4
2
*
*
0
CONTENTS, ALLOC, LOAD, READONLY, DATA
4
.comment
0000002c
0000000000000000
0000000000000000
000000a8
2
*
*
0
CONTENTS, READONLY
5
.note.GNU
-
stack
00000000
0000000000000000
0000000000000000
000000d4
2
*
*
0
CONTENTS, READONLY
6
.note.gnu.
property
00000020
0000000000000000
0000000000000000
000000d8
2
*
*
3
CONTENTS, ALLOC, LOAD, READONLY, DATA
7
.eh_frame
00000058
0000000000000000
0000000000000000
000000f8
2
*
*
3
CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA
SYMBOL TABLE:
0000000000000000
l df
*
ABS
*
0000000000000000
elfDemo.c
0000000000000000
l d .text
0000000000000000
.text
0000000000000000
l d .data
0000000000000000
.data
0000000000000000
l d .rodata
0000000000000000
.rodata
0000000000000004
l O .data
0000000000000004
local_static_init_var.
1
0000000000000004
l O .bss
0000000000000004
local_unstatic_var.
0
0000000000000000
g O .data
0000000000000004
global_init_var
0000000000000000
g O .bss
0000000000000004
global_uninit_var
0000000000000000
g F .text
000000000000002b
func
0000000000000000
*
UND
*
0000000000000000
printf
000000000000002b
g F .text
0000000000000030
main
Contents of section .text:
0000
f30f1efa
554889e5
4883ec10
897dfc8b
....UH..H....}..
0010
45fc89c6
488d0500
00000048
89c7b800
E...H......H....
0020
000000e8
00000000
90c9c3f3
0f1efa55
...............U
0030
4889e548
83ec10c7
45fc1e00
00008b15
H..H....E.......
0040
00000000
8b45fc01
c28b0500
00000001
.....E..........
0050
d089c7e8
00000000
90c9c3
...........
Contents of section .data:
0000
0a000000
14000000
........
Contents of section .rodata:
0000
25640a00
%
d..
Contents of section .comment:
0000
00474343
3a202855
62756e74
75203131
.GCC: (Ubuntu
11
0010
2e332e30
2d317562
756e7475
317e3232
.
3.0
-
1ubuntu1
~
22
0020
2e303429
2031312e
332e3000
.
04
)
11.3
.
0.
Contents of section .note.gnu.
property
:
0000
04000000
10000000
05000000
474e5500
............GNU.
0010
020000c0
04000000
03000000
00000000
................
Contents of section .eh_frame:
0000
14000000
00000000
017a5200
01781001
.........zR..x..
0010
1b0c0708
90010000
1c000000
1c000000
................
0020
00000000
2b000000
00450e10
8602430d
....
+
....E....C.
0030
06620c07
08000000
1c000000
3c000000
.b..........<...
0040
00000000
30000000
00450e10
8602430d
....
0.
...E....C.
0050
06670c07
08000000
.g......
Disassembly of section .text:
0000000000000000
<func>:
0
: f3
0f
1e
fa endbr64
4
:
55
push
%
rbp
5
:
48
89
e5 mov
%
rsp,
%
rbp
8
:
48
83
ec
10
sub $
0x10
,
%
rsp
c:
89
7d
fc mov
%
edi,
-
0x4
(
%
rbp)
f:
8b
45
fc mov
-
0x4
(
%
rbp),
%
eax
12
:
89
c6 mov
%
eax,
%
esi
14
:
48
8d
05
00
00
00
00
lea
0x0
(
%
rip),
%
rax
17
: R_X86_64_PC32 .rodata
-
0x4
1b
:
48
89
c7 mov
%
rax,
%
rdi
1e
: b8
00
00
00
00
mov $
0x0
,
%
eax
23
: e8
00
00
00
00
call
28
<func
+
0x28
>
24
: R_X86_64_PLT32 printf
-
0x4
28
:
90
nop
29
: c9 leave
2a
: c3 ret
000000000000002b
<main>:
2b
: f3
0f
1e
fa endbr64
2f
:
55
push
%
rbp
30
:
48
89
e5 mov
%
rsp,
%
rbp
33
:
48
83
ec
10
sub $
0x10
,
%
rsp
37
: c7
45
fc
1e
00
00
00
movl $
0x1e
,
-
0x4
(
%
rbp)
3e
:
8b
15
00
00
00
00
mov
0x0
(
%
rip),
%
edx
40
: R_X86_64_PC32 global_init_var
-
0x4
44
:
8b
45
fc mov
-
0x4
(
%
rbp),
%
eax
47
:
01
c2 add
%
eax,
%
edx
49
:
8b
05
00
00
00
00
mov
0x0
(
%
rip),
%
eax
4b
: R_X86_64_PC32 .data
4f
:
01
d0 add
%
edx,
%
eax
51
:
89
c7 mov
%
eax,
%
edi
53
: e8
00
00
00
00
call
58
<main
+
0x2d
>
54
: R_X86_64_PLT32 func
-
0x4
58
:
90
nop
59
: c9 leave
5a
: c3 ret