From 8153447847aeaa0e1181cf62579cc3264ba44a8b Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 28 Oct 2023 11:48:28 +0300 Subject: add initial relocation stuff --- tasm/include/tasm/assembler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tasm/include') diff --git a/tasm/include/tasm/assembler.h b/tasm/include/tasm/assembler.h index d687dbb..52ab867 100644 --- a/tasm/include/tasm/assembler.h +++ b/tasm/include/tasm/assembler.h @@ -6,7 +6,7 @@ struct asm_ctx; -enum asm_reloc { +enum asm_reloc_kind { /* absolute LUI + ADDI */ RELOC_LA, /* relative AUIPC + ADDI (currently unimplemented) */ @@ -35,7 +35,7 @@ void emit_d(struct asm_ctx *ctx, tri_t opcode, /* emits a relocation for the previous instruction, very important to keep in * mind! */ -void emit_reloc(struct asm_ctx *ctx, enum asm_reloc reloc, const char *name); +void emit_reloc(struct asm_ctx *ctx, enum asm_reloc_kind reloc, const char *name); void emit_label(struct asm_ctx *ctx, const char *name); tri_t check_nop(const char *nop); -- cgit v1.3