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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') 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) -- cgit v1.2.3