Guest User

Untitled

a guest
Jan 22nd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. /* compute abs address of label finish */
  2. leaq finish(%rip), %rcx
  3. /* save address of finish as return-address for context-function */
  4. /* will be entered after context-function returns */
  5. movq %rcx, 0x40(%rax)
  6.  
  7. ret /* return pointer to context-data */
  8.  
  9. finish:
  10. /* exit code is zero */
  11. xorq %rdi, %rdi
  12. /* exit application */
  13. call _exit@PLT
  14. hlt
  15.  
  16. lea eax, msg
Add Comment
Please, Sign In to add comment