lifting-bits / remill

Library for lifting machine code to LLVM bitcode
Apache License 2.0
1.22k stars 142 forks source link

Implement GET_PC idiom #610

Closed tetsuo-cpp closed 1 year ago

tetsuo-cpp commented 1 year ago

This is an initial attempt at implementing the CALL+POP idiom that occurs in x86 code to assign the PC to a register.

tetsuo-cpp commented 1 year ago

@pgoodman The State structure seems to be getting removed from the generated IR for the example we were looking at.

tetsuo-cpp commented 1 year ago

There's already some attempt to recognise this idiom in Remill so I'm going to explore patching that first.

tetsuo-cpp commented 1 year ago

Ok, superseded by #612.