-
Notifications
You must be signed in to change notification settings - Fork 0
/
overlay.ld
44 lines (40 loc) · 952 Bytes
/
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
__heap_base = MAX(__ovl0_end, __ovl1_end);
SECTIONS {
OVERLAY __bss_end : NOCROSSREFS SUBALIGN(4)
{
.ovlload
{
load_all_overlays_here = .;
}
.ovl0
{
KEEP(cubetex.o(.text))
__ovl0_ctor = .;
KEEP(cubetex.o(.text.startup._GLOBAL__*))
KEEP(cubetex.o(.text.*))
KEEP(cubetex.o(.rodata*))
KEEP(cubetex.o(.sdata*))
KEEP(cubetex.o(.data*))
KEEP(cubetex.o(.sbss*))
KEEP(cubetex.o(.bss*))
KEEP(cubetex.o(.ctors))
. = ALIGN(4);
__ovl0_end = .;
}
.ovl1
{
KEEP(tritex.o(.text))
__ovl1_ctor = .;
KEEP(tritex.o(.text.startup._GLOBAL__*))
KEEP(tritex.o(.text.*))
KEEP(tritex.o(.rodata*))
KEEP(tritex.o(.sdata*))
KEEP(tritex.o(.data*))
KEEP(tritex.o(.sbss*))
KEEP(tritex.o(.bss*))
KEEP(tritex.o(.ctors))
. = ALIGN(4);
__ovl1_end = .;
}
}
}