Displaying 2 results from an estimated 2 matches for "addmorestack".
2016 Sep 04
1
How to insert instructions before each function calls?
...t;>
>> I'm trying to implement something similar to segmented stack mechanism by
using LLVM. Instead of inserting comparison code in the prologue of the
function, I would like do the probe before arguments pushed. The segmentd
stacks append a guarded page. 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_s...
2016 Sep 05
2
How to insert instructions before each function calls?
...wer.
>
> I'm trying to implement something similar to segmented stack mechanism by using LLVM. Instead of inserting comparison code in the prologue of the function, I would like do the probe before arguments pushed. The segmentd stacks append a guarded page. 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
>...