mirror of https://github.com/rusefi/openblt.git
39 lines
657 B
Plaintext
39 lines
657 B
Plaintext
MEMORY
|
|
{
|
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 24K
|
|
SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 8K
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
__STACKSIZE__ = 512;
|
|
|
|
.text :
|
|
{
|
|
KEEP(*(.isr_vector))
|
|
*(.text*)
|
|
*(.rodata*)
|
|
_etext = .;
|
|
} > FLASH
|
|
|
|
.data : AT (ADDR(.text) + SIZEOF(.text))
|
|
{
|
|
_data = .;
|
|
*(vtable)
|
|
*(.data*)
|
|
_edata = .;
|
|
} > SRAM
|
|
|
|
.bss :
|
|
{
|
|
_bss = .;
|
|
*(.bss*)
|
|
*(COMMON)
|
|
_ebss = .;
|
|
_stack = .;
|
|
. = ALIGN(MAX(_stack + __STACKSIZE__ , .), 4);
|
|
_estack = .;
|
|
|
|
} > SRAM
|
|
}
|