Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 450 Bytes
#include "../macros.h"
ENTRY(call_hack)
push $_next_instruction # Push the address of the
# instruction following
# our emulated `call`
jmp simplest_function_ret_hack # Jump to the called function
_next_instruction: # And we're back!
ret
ENTRY(simplest_function_ret_hack)
pop %eax
jmp *%eax