diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-09-09 01:08:34 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 16aaaa19a3ef4220726007d3e644ced0c9e06513 (patch) | |
tree | 6a7c2fc91bc362559b079afbb10dc247d7bcbae0 /executor/x86_64/asm.h | |
parent | de48503aef098d855754ab6f85558402130188d7 (diff) |
Allow referencing code in imported file (right now for function calls, allow calling a function in another file)
Diffstat (limited to 'executor/x86_64/asm.h')
-rw-r--r-- | executor/x86_64/asm.h | 8 |
1 files changed, 4 insertions, 4 deletions
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); |