REDRIVER2/PSXToolchain/redriver2_overlays.ld

81 lines
1.9 KiB
Plaintext
Raw Normal View History

2021-04-29 15:27:43 +02:00
__heap_base = mallocTab_end;
2021-04-28 23:03:54 +02:00
SECTIONS {
OVERLAY __bss_end : NOCROSSREFS SUBALIGN(4)
{
.memTab
{
memTab_org = .;
. = 0x50400;
memTab_end = .;
}
.path
{
KEEP(GameSRC/Game/C/pathfind.o(.text))
__path_ctor = .;
KEEP(GameSRC/Game/C/pathfind.o(.text.startup._GLOBAL__*))
KEEP(GameSRC/Game/C/pathfind.o(.text.*))
KEEP(GameSRC/Game/C/pathfind.o(.rodata*))
KEEP(GameSRC/Game/C/pathfind.o(.sdata*))
KEEP(GameSRC/Game/C/pathfind.o(.data*))
KEEP(GameSRC/Game/C/pathfind.o(.sbss*))
KEEP(GameSRC/Game/C/pathfind.o(.bss*))
KEEP(GameSRC/Game/C/pathfind.o(.ctors))
. = ALIGN(4);
2021-04-29 15:27:43 +02:00
__path_end = .;
2021-04-28 23:03:54 +02:00
}
.lead
{
KEEP(GameSRC/Game/C/leadai.o(.text))
__lead_ctor = .;
KEEP(GameSRC/Game/C/leadai.o(.text.startup._GLOBAL__*))
KEEP(GameSRC/Game/C/leadai.o(.text.*))
KEEP(GameSRC/Game/C/leadai.o(.rodata*))
KEEP(GameSRC/Game/C/leadai.o(.sdata*))
KEEP(GameSRC/Game/C/leadai.o(.data*))
KEEP(GameSRC/Game/C/leadai.o(.sbss*))
KEEP(GameSRC/Game/C/leadai.o(.bss*))
KEEP(GameSRC/Game/C/leadai.o(.ctors))
. = ALIGN(4);
2021-04-29 15:27:43 +02:00
__lead_end = .;
2021-04-28 23:03:54 +02:00
}
}
2021-04-29 15:27:43 +02:00
OVERLAY LOADADDR(.memTab) + SIZEOF(.memTab) + 0x88C00 : NOCROSSREFS SUBALIGN(4)
{
2021-04-28 23:03:54 +02:00
.frnt
2021-04-29 15:27:43 +02:00
{
2021-04-28 23:03:54 +02:00
KEEP(GameSRC/Game/*.o(.text))
__frnt_ctor = .;
KEEP(GameSRC/Game/Frontend/*.o(.text.startup._GLOBAL__*))
KEEP(GameSRC/Game/Frontend/*.o(.text.*))
KEEP(GameSRC/Game/Frontend/*.o(.rodata*))
2021-04-29 15:27:43 +02:00
KEEP(GameSRC/Game/Frontend/*.o(.sdata*))
2021-04-28 23:03:54 +02:00
KEEP(GameSRC/Game/Frontend/*.o(.data*))
2021-04-29 15:27:43 +02:00
KEEP(GameSRC/Game/Frontend/*.o(.sbss*))
2021-04-28 23:03:54 +02:00
KEEP(GameSRC/Game/Frontend/*.o(.bss*))
KEEP(GameSRC/Game/Frontend/*.o(.ctors))
. = ALIGN(4);
__frnt_end = .;
}
}
2021-04-29 15:27:43 +02:00
OVERLAY LOADADDR(.memTab) + SIZEOF(.memTab) : NOCROSSREFS SUBALIGN(4)
{
.mallocTab
{
mallocTab_org = .;
. = 0xD7C00;
mallocTab_end = .;
}
}
2021-04-28 23:03:54 +02:00
}