linux - leave instruction returns a seg fault -
I have a regular caller who regularly calls, where the value in the How can this be decided? The code is too big (to post here, but I can post if needed), but this idea is something like this: I hope this code is enough for you to consider this .. Also like an explanation. what If you want to use it and want to work it out, you can at the end of your function. Of course, if you do this, you can use Using ebp register is expected I change it several times in routine. So, I can not:
mov ebp, esp at the top of the code. I tried to save the
esp address to another and before that
leave instructions this address was placed in
ebp but now I There is also a sectional mistake
; Several arguments are passed in Stack Foo: X-ray ebayx, ebx mnx xx, ASP loop 0: all adx, 1gje and; Etc. MOV EX, [ESP + EBX] MOE EBP, EX Call RTINET etc.; ..; ... mov ebp, edx call printx add ebx, 4 jmp loop 0 end: mov ebp, ecx leave ret
leave is:
MOV esp, ebp pop ebp
EBP Move EBP, ECX Lodge Press
leave completely:
mov esp, ecx ret
ecx as your frame indicator.
Comments
Post a Comment