diff options
author | PikalaxALT <PikalaxALT@gmail.com> | 2020-04-15 09:00:46 -0400 |
---|---|---|
committer | PikalaxALT <PikalaxALT@gmail.com> | 2020-04-15 09:00:46 -0400 |
commit | b661c7888c57280a19801b320cf7860e6555f1d3 (patch) | |
tree | 016548cf8fed0f83a16a35820c963fa3b31ee004 | |
parent | a5332e2f9e029ca7c0003a5cd096af3c68ace5bb (diff) |
Truncate ROM and pad using objcopy
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | asm/icon.s | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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) @@ -1,2 +1,2 @@ .text - .incbin "baserom.nds", 0x338600 + .incbin "baserom.nds", 0x338600, 0x371d8c0 |