-
Notifications
You must be signed in to change notification settings - Fork 25
/
linker.ld
63 lines (49 loc) · 837 Bytes
/
linker.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
56
57
58
59
60
61
62
63
/*
* Copyright (c) 2019 Ash Wilding. All rights reserved.
*
* SPDX-License-Identifier: MIT
*/
ENTRY(entry3)
SECTIONS
{
. = 0x80000000;
_stack_end = .;
.stack (NOLOAD): {
. = . + 16K;
}
_stack_start = .;
. = ALIGN(4K);
_rw_start = .;
.data : {
*(.data);
}
.bss : {
*(.bss);
}
. = ALIGN(4K);
_rw_end = .;
_exec_start = .;
.text : {
out/entry3.o(.text);
out/entry2.o(.text);
*(.text);
}
. = ALIGN(4K);
_exec_end = .;
. = ALIGN(2M);
_heap_start = .;
.heap (NOLOAD): {
. = . + 2M;
}
_heap_end = .;
_vm1_start = .;
.vm1 (NOLOAD): {
. = . + 2M;
}
_vm1_end = .;
_vm2_start = .;
.vm2 (NOLOAD): {
. = . + 2M;
}
_vm2_end = .;
}