Update mkoverlay with new overlay strategy

This commit is contained in:
Jaby
2022-12-20 20:34:03 +01:00
committed by Jaby
parent 82c25693a9
commit c6c0f10143
6 changed files with 152 additions and 66 deletions

View File

@@ -49,8 +49,6 @@ __fdata_len = (__planschi_end - __fdata_start);
__stack_start = ORIGIN(ram) + LENGTH(ram);
__heap_base = __planschi_end;
SECTIONS {
/DISCARD/ : { *(.MIPS.abiflags) }
@@ -61,30 +59,7 @@ SECTIONS {
/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) *(.gnu.*) *(.comment) }
}
SECTIONS {
__boot_loader_start = .;
__planschi_start = .;
OVERLAY __bss_end : NOCROSSREFS SUBALIGN(4)
{
.planschi
{
*libJabyEngine.a:*_boot.o(.text.startup._GLOBAL__*)
*libJabyEngine.a:*_boot.o(.ctors)
*libJabyEngine.a:*_boot.o(.text.*)
*libJabyEngine.a:*_boot.o(.rodata*)
*libJabyEngine.a:*_boot.o(.sdata*)
*libJabyEngine.a::*_boot.o(.data*)
*libJabyEngine.a::*_boot.o(.sbss*)
*libJabyEngine.a::*_boot.o(.bss*)
*libJabyEngine.a::*_boot.o(*)
}
}
__boot_loader_end = .;
/*Only needed for the PSX BIOS to load the entire game*/
. = ALIGN(2048);
__planschi_end = .;
}
/*Overlay sections created by mkoverlay*/
SECTIONS {
.PSX_EXE_Header : {