From 16aaaa19a3ef4220726007d3e644ced0c9e06513 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 9 Sep 2019 01:08:34 +0200 Subject: Allow referencing code in imported file (right now for function calls, allow calling a function in another file) --- executor/x86_64/asm.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'executor/x86_64/asm.h') diff --git a/executor/x86_64/asm.h b/executor/x86_64/asm.h index a3f1b5a..6ac74f4 100644 --- a/executor/x86_64/asm.h +++ b/executor/x86_64/asm.h @@ -88,7 +88,7 @@ void asm_callr(Asm *self, Reg64 reg); by this asm library itself. */ void asm_call_rel32(Asm *self, i32 relative); -void asm_override_call_rel32(Asm *self, u32 asm_index, i32 new_relative); +void asm_overwrite_call_rel32(Asm *self, u32 asm_index, i32 new_relative); void asm_cmp_rm(Asm *self, Reg64 reg1, AsmPtr *reg2); /* @@ -104,15 +104,15 @@ void asm_sete_r(Asm *self, Reg64 dst); by this asm library itself. */ void asm_jz(Asm *self, i32 relative); -/* Override conditional jump target */ -void asm_override_jcc_rel32(Asm *self, u32 asm_index, i32 new_relative); +/* Overwrite conditional jump target */ +void asm_overwrite_jcc_rel32(Asm *self, u32 asm_index, i32 new_relative); /* In x86 assembly, the @relative position starts from the next instruction. This offset shouldn't be calculated by the caller and is instead managed by this asm library itself. */ void asm_jmp(Asm *self, i32 relative); -void asm_override_jmp_rel32(Asm *self, u32 asm_index, i32 new_relative); +void asm_overwrite_jmp_rel32(Asm *self, u32 asm_index, i32 new_relative); -- cgit v1.2.3