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).
This commit is contained in:
tustin2121 2022-11-02 12:42:26 -04:00
parent f4f9329653
commit 8ff5ae7eb4
2 changed files with 5 additions and 2 deletions

View File

@ -27,7 +27,7 @@ SECTIONS {
*libc.a:locale.o(.data); *libc.a:locale.o(.data);
*libc.a:mallocr.o(.data); *libc.a:mallocr.o(.data);
. = 0x40000; . = 0x40000;
} }
. = 0x3000000; . = 0x3000000;

View File

@ -49,8 +49,11 @@ SECTIONS {
ALIGN(4) ALIGN(4)
{ {
src/rom_header.o(.text*); 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*); gflib/*.o(.text*);
src/*.o(.text*);
asm/*.o(.text*); asm/*.o(.text*);
} =0 } =0