remill icon indicating copy to clipboard operation
remill copied to clipboard

Emit IR for `syscall` in addition to a `__remill_async_hyper_call`

Open tetsuo-cpp opened this issue 3 years ago • 1 comments

At the moment, we simply add a call to __remill_async_hyper_call to indicate a control flow change. We should also emit IR for the actual instruction.

I used these for reference: https://www.cs.uaf.edu/2017/fall/cs301/lecture/11_17_syscall.html https://www.felixcloutier.com/x86/syscall.html https://www.felixcloutier.com/x86/sysenter https://www.felixcloutier.com/x86/sysexit

tetsuo-cpp avatar Sep 02 '22 15:09 tetsuo-cpp

Whoops, I didn't get the inline asm syntax right. Fixing now...

tetsuo-cpp avatar Sep 02 '22 15:09 tetsuo-cpp

@pgoodman Ok, I think this should do the trick.

tetsuo-cpp avatar Sep 26 '22 13:09 tetsuo-cpp