From c8d1651e0cd6566c40205f4a4010000ae4b7c01f Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Sun, 2 Jun 2024 12:48:45 +0300 Subject: [PATCH] some compilation changes --- src/convention/Windows64Convention.cpp | 2 +- src/generator/ArmV7Generator.cpp | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/convention/Windows64Convention.cpp b/src/convention/Windows64Convention.cpp index 04c0f9e..cd4ce80 100644 --- a/src/convention/Windows64Convention.cpp +++ b/src/convention/Windows64Convention.cpp @@ -37,7 +37,7 @@ namespace { ThiscallConvention::~ThiscallConvention() {} -void ThiscallConvention::generateDefaultCleanup(BaseAssembler& a, AbstractFunction const& function) { +void ThiscallConvention::generateDefaultCleanup(BaseAssembler& a_, AbstractFunction const& function) { size_t stackParamSize = getStackParamSize(function); if (stackParamSize > 0) { auto& a = static_cast(a_); diff --git a/src/generator/ArmV7Generator.cpp b/src/generator/ArmV7Generator.cpp index acb9d85..edc9458 100644 --- a/src/generator/ArmV7Generator.cpp +++ b/src/generator/ArmV7Generator.cpp @@ -107,12 +107,7 @@ std::vector ArmV7HandlerGenerator::intervenerBytes(uint64_t address) { return std::move(a.m_buffer); } -std::vector ArmV7HandlerGenerator::trampolineBytes(uint64_t address, size_t offset) { - // Dobby handles the creation of the trampoline - return {}; -} - -Result<> ArmV7HandlerGenerator::generateTrampoline(int64_t target) { +Result<> ArmV7HandlerGenerator::generateTrampoline(uint64_t target) { auto origin = new CodeMemBlock((uint64_t)Target::get().getRealPtr(m_address), target); auto relocated = new CodeMemBlock(); // idk about arm thumb stuff help me