Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .section .rodata
- str:
- .asciz "Smashed!"
- .section .text
- .globl main
- main:
- pushq %rbp
- movq %rsp, %rbp
- call function
- xorl %eax, %eax
- leave
- ret
- function:
- pushq %rbp
- movq %rsp, %rbp
- leaq smash(%rip), %r8
- movq %r8, 8(%rbp)
- leave
- ret
- smash:
- leaq str(%rip), %rdi
- call puts@plt
- movq $60, %rax
- movq $89, %rdi
- syscall
Add Comment
Please, Sign In to add comment