Hi, I got a situation that Dyninst overwrite register value which generate in my snippet because of the protection of stack and eflag register. Because in the emitStackAlign function (emit-x86.C), it try to align the stack and rax register is used in the middle. so if the snippet which put result into $rax, the value will be modified. A generated example: lea -0x80(%rsp),%rsp push %rax lahf seto %al push %rax mov 0x655df0,%rax --> the snippet I added. pop %rax add $0x7f,%al sahf pop %rax lea 0x80(%rsp),%rsp
I want to ask if there are any API which I can turn off this trampline code? Thanks in advance. -- Best Regards X.Chen
_______________________________________________ Dyninst-api mailing list [email protected] https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api
