-
Notifications
You must be signed in to change notification settings - Fork 3
/
ldscript
49 lines (41 loc) · 736 Bytes
/
ldscript
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
MEMORY
{
flash (rx) : ORIGIN = 0x00000000, LENGTH = 0x40000
sram0 (rwx) : ORIGIN = 0x20000000, LENGTH = 16K
}
ENTRY(md_init)
SECTIONS
{
. = 0x0;
.start . : {
*start.o(.text);
} > flash
. = 0x7fe0;
.secure_gate . : {
*secure_gate.o(.text);
} > flash
.text : {
*(.exception);
*(.text*);
} > flash
.rodata : {
*(.rodata*);
} > flash
/* Ensure _smem is associated with the next section */
. = .;
_smem = ABSOLUTE(.);
.data : {
_sdata = ABSOLUTE(.);
*(.data*);
__start_set_sysinit_set = ABSOLUTE(.);
*(set_sysinit*)
__stop_set_sysinit_set = ABSOLUTE(.);
_edata = ABSOLUTE(.);
} > sram0 AT > flash
.bss : {
_sbss = ABSOLUTE(.);
*(.bss*)
*(COMMON)
_ebss = ABSOLUTE(.);
} > sram0
}