From b661c7888c57280a19801b320cf7860e6555f1d3 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Wed, 15 Apr 2020 09:00:46 -0400 Subject: Truncate ROM and pad using objcopy --- Makefile | 2 +- asm/icon.s | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e27daefb..577c034b 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ $(ELF): $(O_FILES) $(BUILD_DIR)/$(LD_SCRIPT) undefined_syms.txt $(LD) -T undefined_syms.txt -T $(BUILD_DIR)/$(LD_SCRIPT) -o $(ELF) -Map $(BUILD_DIR)/$(TARGET).map $(ROM): $(ELF) - $(OBJCOPY) -O binary --gap-fill=0xFF $< $@ + $(OBJCOPY) -O binary --gap-fill=0xFF --pad-to=0x04000000 $< $@ # Make sure build directory exists before compiling anything DUMMY != mkdir -p $(ALL_DIRS) diff --git a/asm/icon.s b/asm/icon.s index 91a07147..fb77c2c7 100644 --- a/asm/icon.s +++ b/asm/icon.s @@ -1,2 +1,2 @@ .text - .incbin "baserom.nds", 0x338600 + .incbin "baserom.nds", 0x338600, 0x371d8c0 -- cgit v1.2.3