3dcam-headers/overlay.ld

56 lines
1.4 KiB
Plaintext
Raw Normal View History

2021-04-15 18:18:39 +02:00
__heap_base = MAX(__lvl0_end, __lvl1_end);
2021-04-14 15:56:14 +02:00
2021-04-15 18:18:39 +02:00
SECTIONS {
OVERLAY __bss_end : NOCROSSREFS SUBALIGN(4)
{
.lvlload
2021-04-14 15:56:14 +02:00
{
2021-04-15 18:18:39 +02:00
load_all_overlays_here = .;
}
.lvl0
{
KEEP(levels/level0.o(.text))
__lvl0_ctor = .;
KEEP(levels/level0.o(.text.startup._GLOBAL__*))
KEEP(levels/level0.o(.text.*))
KEEP(levels/level0.o(.rodata*))
2021-11-28 19:59:05 +01:00
KEEP(levels/level0.o(.sdata*))
2021-04-15 18:18:39 +02:00
KEEP(levels/level0.o(.data*))
2021-11-28 19:59:05 +01:00
KEEP(levels/level0.o(.sbss*))
2021-04-15 18:18:39 +02:00
KEEP(levels/level0.o(.bss*))
KEEP(levels/level0.o(.ctors))
2021-04-14 15:56:14 +02:00
2021-11-28 19:59:05 +01:00
/*KEEP(TIM/bg_camPath_*.o(.text))
2021-04-15 18:18:39 +02:00
__lvl0_ctor = .;
KEEP(TIM/bg_camPath_*.o(.text.startup._GLOBAL__*))
KEEP(TIM/bg_camPath_*.o(.text.*))
KEEP(TIM/bg_camPath_*.o(.rodata*))
2021-11-28 19:59:05 +01:00
KEEP(TIM/bg_camPath_*.o(.sdata*))
2021-04-15 18:18:39 +02:00
KEEP(TIM/bg_camPath_*.o(.data*))
2021-11-28 19:59:05 +01:00
KEEP(TIM/bg_camPath_*.o(.sbss*))
2021-04-15 18:18:39 +02:00
KEEP(TIM/bg_camPath_*.o(.bss*))
KEEP(TIM/bg_camPath_*.o(.ctors))
*/
2021-04-14 15:56:14 +02:00
. = ALIGN(4);
2021-04-15 18:18:39 +02:00
__lvl0_end = .;
2021-04-14 15:56:14 +02:00
}
2021-04-15 18:18:39 +02:00
.lvl1
2021-04-14 15:56:14 +02:00
{
KEEP(levels/level1.o(.text))
2021-04-15 18:18:39 +02:00
__lvl1_ctor = .;
2021-04-14 15:56:14 +02:00
KEEP(levels/level1.o(.text.startup._GLOBAL__*))
KEEP(levels/level1.o(.text.*))
KEEP(levels/level1.o(.rodata*))
2021-11-28 19:59:05 +01:00
KEEP(levels/level1.o(.sdata*))
2021-04-14 15:56:14 +02:00
KEEP(levels/level1.o(.data*))
2021-11-28 19:59:05 +01:00
KEEP(levels/level1.o(.sbss*))
2021-04-14 15:56:14 +02:00
KEEP(levels/level1.o(.bss*))
KEEP(levels/level1.o(.ctors))
. = ALIGN(4);
2021-04-15 18:18:39 +02:00
__lvl1_end = .;
2021-04-14 15:56:14 +02:00
}
}
}