feat: basic flag challenge working + fix elf loading

This commit is contained in:
2026-05-08 00:20:26 +02:00
parent e4b65d544f
commit 5ec7d85b4e
8 changed files with 279 additions and 39 deletions

View File

@@ -49,7 +49,7 @@ build/%.riscv.o: src/emulated/%.c $(GENERATED) | build
$(RISCV_CC) $(RISCV_ARCH_FLAGS) -I $(dir $(GENERATED)) -I src/emulated -c $< -o $@
$(EMU_OBJ): $(EMU_OBJ_FILES) | build
$(RISCV_CC) $(RISCV_ARCH_FLAGS) -nostdlib -Wl,-e,entry -Wl,-Ttext=0 $(EMU_OBJ_FILES) -o $@
$(RISCV_CC) $(RISCV_ARCH_FLAGS) -nostdlib -Wl,-e,entry -Wl,-Ttext=0 -Wl,--emit-relocs $(EMU_OBJ_FILES) -o $@
.FORCE: