From e698a6506ffeb8bf35c637205bd7f123a2753d4e Mon Sep 17 00:00:00 2001 From: tustin2121 Date: Wed, 2 Nov 2022 12:44:32 -0400 Subject: [PATCH] Pinning GFHeader to front of modern - Pinning the GF Header, crt0, and main to the front of the ROM when building modern. - Moving the gflib before other source files, to make it closer to the non-modern linker script (and therefore smaller patches). --- ld_script_modern.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ld_script_modern.txt b/ld_script_modern.txt index b60a22171..dd4eeed6a 100644 --- a/ld_script_modern.txt +++ b/ld_script_modern.txt @@ -17,7 +17,7 @@ SECTIONS { gflib/*.o(ewram_data); . = 0x40000; -} + } . = 0x3000000; @@ -49,8 +49,11 @@ SECTIONS { ALIGN(4) { src/rom_header.o(.text*); - src/*.o(.text*); + src/rom_header_gf.o(.text.*); + src/crt0.o(.text); + src/main.o(.text); gflib/*.o(.text*); + src/*.o(.text*); asm/*.o(.text*); } =0