Skip to content

Commit

Permalink
ret
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Jun 2, 2024
1 parent 2a6fc41 commit 7bb7c98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/generator/X64Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ std::vector<uint8_t> X64HandlerGenerator::handlerBytes(uint64_t address) {

a.mov(RAX, m[RBP - 0x10]);
// a.int3();
// a.call(RAX);
a.call(RAX);
// // a.int3();
m_metadata.m_convention->generateDefaultCleanup(a, m_metadata.m_abstract);

Expand Down Expand Up @@ -363,6 +363,8 @@ Result<> X64HandlerGenerator::generateTrampoline(uint64_t target) {
X64Assembler a(reinterpret_cast<uint64_t>(m_trampoline));
using enum X64Register;

a.ret();

if (m_metadata.m_convention->needsWrapper(m_metadata.m_abstract)) {
a.push(RBP);
a.mov(RBP, RSP);
Expand Down

0 comments on commit 7bb7c98

Please sign in to comment.