Skip to content
This repository was archived by the owner on Aug 16, 2026. It is now read-only.

Support for relocation of RIP-relative instructions in FunctionHook #35

Description

@alexrp

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: hookingIssues related to the function hooking APIs.cpu: x86 64Issues that are specific to x86 (64-bit).state: approvedEnhancements and tasks that have been approved.

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions