Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* compute abs address of label finish */
- leaq finish(%rip), %rcx
- /* save address of finish as return-address for context-function */
- /* will be entered after context-function returns */
- movq %rcx, 0x40(%rax)
- ret /* return pointer to context-data */
- finish:
- /* exit code is zero */
- xorq %rdi, %rdi
- /* exit application */
- call _exit@PLT
- hlt
- lea eax, msg
Add Comment
Please, Sign In to add comment