summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2020-04-15 09:00:46 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2020-04-15 09:00:46 -0400
commitb661c7888c57280a19801b320cf7860e6555f1d3 (patch)
tree016548cf8fed0f83a16a35820c963fa3b31ee004
parenta5332e2f9e029ca7c0003a5cd096af3c68ace5bb (diff)
Truncate ROM and pad using objcopy
-rw-r--r--Makefile2
-rw-r--r--asm/icon.s2
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