You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
808 B
Plaintext

2 weeks ago
ENTRY(_start)
/* description of memory regions */
MEMORY {
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 96K
}
/* description of ELF sections */
SECTIONS {
.text : {
. = ALIGN(8);
2 weeks ago
*(.vector_table)
2 weeks ago
*(.text)
*(.text*)
} > FLASH
/* read-only data sections */
.rodata : {
. = ALIGN(8);
*(.rodata)
*(.rodata*)
} > FLASH
/* initialized data */
__data_flash = LOADADDR(.data);
2 weeks ago
.data : {
. = ALIGN(8);
__data = .;
2 weeks ago
*(.data)
2 weeks ago
*(.data*)
2 weeks ago
. = ALIGN(8);
__data_size = . - __data;
2 weeks ago
} > RAM AT > FLASH
/* uninitialized data */
.bss : {
. = ALIGN(8);
__bss = .;
2 weeks ago
*(.bss)
2 weeks ago
*(.bss*)
2 weeks ago
. = ALIGN(8);
__bss_size = . - __bss;
2 weeks ago
} > RAM
2 weeks ago
.stack : {
. = ALIGN(4);
_bstack = .;
. += 1024;
2 weeks ago
_tstack = .;
} > RAM
2 weeks ago
}