From 8ff5ae7eb4dfb43004d659a2df0a622b0ea758eb Mon Sep 17 00:00:00 2001 From: tustin2121 Date: Wed, 2 Nov 2022 12:42:26 -0400 Subject: [PATCH] Pinning the GF header to the 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.txt | 2 +- ld_script_modern.txt | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ld_script.txt b/ld_script.txt index 904ca0fec..bd9d7c4a3 100644 --- a/ld_script.txt +++ b/ld_script.txt @@ -27,7 +27,7 @@ SECTIONS { *libc.a:locale.o(.data); *libc.a:mallocr.o(.data); . = 0x40000; -} + } . = 0x3000000; diff --git a/ld_script_modern.txt b/ld_script_modern.txt index a988fe0cd..549d040e1 100644 --- a/ld_script_modern.txt +++ b/ld_script_modern.txt @@ -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