-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathlinker_script.ld
More file actions
25 lines (24 loc) · 615 Bytes
/
Copy pathlinker_script.ld
File metadata and controls
25 lines (24 loc) · 615 Bytes
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
MEMORY
{
FLASH(rx) : ORIGIN = 0x10000000, LENGTH = 2048k
RAM(rwx) : ORIGIN = 0x20000000, LENGTH = 256k
}
SECTIONS
{
/* set the location counter to the address (ORIGIN property) of flash */
. = ORIGIN(FLASH);
/* the output .text section will be starting at the flash address */
.text : {
*(.text)
*(.rodata*)
_end_text = .;
} > FLASH
/* set the location counter to the address (ORIGIN property) of ram */
. = ORIGIN(RAM);
/* the output .data section will be starting at the ram address */
.data : AT (_end_text) {
_start_data = .;
*(.data)
_end_data = .;
} > RAM
}