1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-20 05:49:30 +08:00
Files
Alas/blcrack/cracker/Dobby/source/InstructionRelocation/x86/InstructionRelocationX86Shared.h
2025-11-01 00:23:46 +08:00

14 lines
561 B
C

#pragma once
#include "dobby/common.h"
#include "MemoryAllocator/AssemblyCodeBuilder.h"
#include "x86_insn_decode/x86_insn_decode.h"
int GenRelocateCodeFixed(void *buffer, CodeMemBlock *origin, CodeMemBlock *relocated, bool branch);
void GenRelocateCodeX86Shared(void *buffer, CodeMemBlock *origin, CodeMemBlock *relocated, bool branch);
int GenRelocateSingleX86Insn(addr_t curr_orig_ip, addr_t curr_relo_ip, uint8_t *buffer_cursor, AssemblerBase *assembler,
CodeBufferBase *code_buffer, x86_insn_decode_t &insn, int8_t mode);