-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.ld
41 lines (34 loc) · 692 Bytes
/
layout.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
ENTRY(_reset);
MEMORY
{
FLASH : ORIGIN = 0x08000000, LENGTH = 128K
RAM : ORIGIN = 0x20000000, LENGTH = 20K
}
SECTIONS
{
.text :
{
/* the ARM vector table */
/* address of the stack (starts at end of ram) */
LONG(ORIGIN(RAM) + LENGTH(RAM))
/* adding 1, because bit 0 has to be set, to indicate Thumb mode */
LONG(_reset + 1);
KEEP(*(.rodata._EXCEPTIONS));
/* reset handler (the main entry point) */
_reset = .;
*(.text._reset)
*(.text*)
} > FLASH
data_in_flash_start = .;
.data :
{
data_in_ram_start = .;
*(.data*)
data_in_ram_end = .;
} > RAM
/DISCARD/ :
{
*(.ARM.exidx*)
*(.note.gnu.build-id*)
}
}