Support for relocation of RIP-relative instructions in FunctionHook
#35
Labels
area: hooking
Issues related to the function hooking APIs.
cpu: x86 64
Issues that are specific to x86 (64-bit).
state: approved
Enhancements and tasks that have been approved.
Milestone
This is quite a difficult problem to solve, but it is possible. Instructions that use RIP-relative displacements have to be rewritten to equivalent sequences using absolute addresses. The tricky part is picking a volatile scratch register to use in the rewritten code that won't conflict with the original code.
The text was updated successfully, but these errors were encountered: