Skip to content

Commit

Permalink
fix thumb reloc
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Sep 15, 2023
1 parent 086ea58 commit 5959b87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Result<std::unique_ptr<Handler>> Handler::create(void* address, HandlerMetadata
TULIP_HOOK_UNWRAP_INTO(ret->m_handler, Target::get().allocateArea(0x180));
// std::cout << std::hex << "m_handler: " << (void*)ret->m_handler << std::endl;

TULIP_HOOK_UNWRAP_INTO(ret->m_trampoline, Target::get().allocateArea(0x40));
TULIP_HOOK_UNWRAP_INTO(ret->m_trampoline, Target::get().allocateArea(0x80));

auto wrapperMetadata = WrapperMetadata{
.m_convention = metadata.m_convention,
Expand Down
2 changes: 1 addition & 1 deletion src/generator/ArmV7Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace {
}

Result<ArmV7HandlerGenerator::RelocateReturn> ArmV7HandlerGenerator::relocateOriginal(uint64_t target) {
auto origin = new CodeMemBlock((uint64_t)m_address, target);
auto origin = new CodeMemBlock((uint64_t)Target::get().getRealPtr(m_address), target);
auto relocated = new CodeMemBlock();
// idk about arm thumb stuff help me
auto originBuffer = m_address;
Expand Down

0 comments on commit 5959b87

Please sign in to comment.