-
Notifications
You must be signed in to change notification settings - Fork 4
/
overlay.ld
55 lines (51 loc) · 1.36 KB
/
overlay.ld
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
__heap_base = MAX(__lvl0_end, __lvl1_end);
SECTIONS {
OVERLAY __bss_end : NOCROSSREFS SUBALIGN(4)
{
.lvlload
{
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*))
KEEP(levels/level0.o(.sdata*))
KEEP(levels/level0.o(.data*))
KEEP(levels/level0.o(.sbss*))
KEEP(levels/level0.o(.bss*))
KEEP(levels/level0.o(.ctors))
/*KEEP(TIM/bg_camPath_*.o(.text))
__lvl0_ctor = .;
KEEP(TIM/bg_camPath_*.o(.text.startup._GLOBAL__*))
KEEP(TIM/bg_camPath_*.o(.text.*))
KEEP(TIM/bg_camPath_*.o(.rodata*))
KEEP(TIM/bg_camPath_*.o(.sdata*))
KEEP(TIM/bg_camPath_*.o(.data*))
KEEP(TIM/bg_camPath_*.o(.sbss*))
KEEP(TIM/bg_camPath_*.o(.bss*))
KEEP(TIM/bg_camPath_*.o(.ctors))
*/
. = ALIGN(4);
__lvl0_end = .;
}
.lvl1
{
KEEP(levels/level1.o(.text))
__lvl1_ctor = .;
KEEP(levels/level1.o(.text.startup._GLOBAL__*))
KEEP(levels/level1.o(.text.*))
KEEP(levels/level1.o(.rodata*))
KEEP(levels/level1.o(.sdata*))
KEEP(levels/level1.o(.data*))
KEEP(levels/level1.o(.sbss*))
KEEP(levels/level1.o(.bss*))
KEEP(levels/level1.o(.ctors))
. = ALIGN(4);
__lvl1_end = .;
}
}
}