-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainassembly1_x86
More file actions
23 lines (20 loc) · 954 Bytes
/
mainassembly1_x86
File metadata and controls
23 lines (20 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
objdump -D | grep -A20 main.:
0000000000001149 <main>:
1149: f3 0f 1e fa endbr64
114d: 55 push %rbp
114e: 48 89 e5 mov %rsp,%rbp
1151: 48 83 ec 10 sub $0x10,%rsp
1155: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp)
115c: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp)
1163: eb 13 jmp 1178 <main+0x2f>
1165: 48 8d 05 98 0e 00 00 lea 0xe98(%rip),%rax # 2004 <_IO_stdin_used+0x4>
116c: 48 89 c7 mov %rax,%rdi
116f: e8 dc fe ff ff call 1050 <puts@plt>
1174: 83 45 fc 01 addl $0x1,-0x4(%rbp)
1178: 83 7d fc 09 cmpl $0x9,-0x4(%rbp)
117c: 7e e7 jle 1165 <main+0x1c>
117e: b8 00 00 00 00 mov $0x0,%eax
1183: c9 leave
1184: c3 ret
Disassembly of section .fini:
0000000000001188 <_fini>: