search for: callee_return_label

Displaying 2 results from an estimated 2 matches for "callee_return_label".

2016 Sep 04
1
How to insert instructions before each function calls?
...This guard page will call the addmorestack function if the probe instructions touch this guarded page. Otherwise, it only stroe the return address in the bottom of the callee stack frame. In order to achieve this, for each function call, two instructions are needed to be inserted: LEA %EAX, callee_return_label MOV [ESP- callee_stack_frame_size - arguments_size], %EAX PUSH argn ... PUSH arg1 JMP callee_name callee_return_label: ... So I need to insert two instructions (LEA and MOV) before each function call. I don't know when how to insert these two instructions. Thanks...
2016 Sep 05
2
How to insert instructions before each function calls?
...will call the addmorestack function if the probe instructions touch this guarded page. Otherwise, it only stroe the return address in the bottom of the callee stack frame. > > In order to achieve this, for each function call, two instructions are needed to be inserted: > LEA %EAX, callee_return_label > MOV [ESP- callee_stack_frame_size - arguments_size], %EAX > PUSH argn > ... > PUSH arg1 > JMP callee_name > callee_return_label: > ... > > So I need to insert two instructions (LEA and MOV) before each function call. I don't know when...