-
Notifications
You must be signed in to change notification settings - Fork 0
/
mxslink.lds
81 lines (65 loc) · 1.84 KB
/
mxslink.lds
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_start)
OZ_STACK_SIZE = 1024 + 1024 + 1024;
SVC_STACK_SIZE = 128;
ABT_STACK_SIZE = 128;
UND_STACK_SIZE = 128;
IRQ_STACK_SIZE = 128;
FIQ_STACK_SIZE = 512;
MEMORY {
ROM (rx) : ORIGIN = 0xffff0000, LENGTH = 64K
OCRAM (rwx) : ORIGIN = 0x00001000, LENGTH = 128K
SDRAM (rwx) : ORIGIN = 0x40000000, LENGTH = 128M
}
SECTIONS {
.reset 0x1000 : {
. = ALIGN(4);
*(ivt)
} > OCRAM
.rodata : {
. = ALIGN(4);
*(.rodata*)
} > OCRAM
.text : {
. = ALIGN(4);
*(.text*)
} > OCRAM
.data : {
*(.data*)
} > OCRAM
.bss : {
. = ALIGN(4);
__bss_start = .;
*(.bss*)
__bss_end = .;
} > OCRAM
.cmd_tab : {
. = ALIGN(4);
__cmd_tab_start = .;
KEEP(*(SORT(.cmd_tab*)))
__cmd_tab_end = .;
} > OCRAM
.stack 0x1f000 : {
__stack_start__ = .;
. = ALIGN(4);
. += OZ_STACK_SIZE;
__stack_oz_top__ = .;
. = ALIGN(4);
. += FIQ_STACK_SIZE;
__stack_fiq_top__ = .;
. = ALIGN(4);
. += IRQ_STACK_SIZE;
__stack_irq_top__ = .;
. = ALIGN(4);
. += SVC_STACK_SIZE;
__stack_svc_top__ = .;
. = ALIGN(4);
. += UND_STACK_SIZE;
__stack_und_top__ = .;
. = ALIGN(4);
. += ABT_STACK_SIZE;
__stack_abt_top__ = .;
__stack_end__ = .;
} > OCRAM
}