blob: e31cece3dad77fdcae639b71d7e5aef8c40d2392 [file] [log] [blame]
ENTRY(_start)
MEMORY
{
FLASH (x) :
ORIGIN = 0x0
LENGTH = 1M
SRAM (rwx) :
ORIGIN = 0x20000000,
LENGTH = 8K
stack (rw):
ORIGIN = 0x20000000 + 6K
LENGTH = 2K
}
PROVIDE(_fstack = ORIGIN(stack) + LENGTH(stack) - 4);
SECTIONS
{
.text : {
*(.text*)
*(.rodata*)
. = ALIGN(8);
__idata__ = .;
} > FLASH
.bss (NOLOAD) :
{
__bss_start__ = .;
*(.bss*)
*(COMMON)
__bss_end__ = .;
} > SRAM
.data :
{
__data_start__ = .;
*(.data*);
__data_end__ = .;
} > SRAM AT > FLASH
}