Guest User

Untitled

a guest
Nov 21st, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. .section .rodata
  2. str:
  3. .asciz "Smashed!"
  4.  
  5. .section .text
  6. .globl main
  7. main:
  8. pushq %rbp
  9. movq %rsp, %rbp
  10. call function
  11. xorl %eax, %eax
  12. leave
  13. ret
  14.  
  15. function:
  16. pushq %rbp
  17. movq %rsp, %rbp
  18. leaq smash(%rip), %r8
  19. movq %r8, 8(%rbp)
  20. leave
  21. ret
  22.  
  23. smash:
  24. leaq str(%rip), %rdi
  25. call puts@plt
  26. movq $60, %rax
  27. movq $89, %rdi
  28. syscall
Add Comment
Please, Sign In to add comment