mirror of https://github.com/tinygo-org/tinygo.git
wasmstm32webassemblymicrocontrollerarmavrspiwasiadafruitarduinocircuitplayground-expressgpioi2cllvmmicrobitnrf51nrf52nrf52840samd21tinygo
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
642 B
44 lines
642 B
7 years ago
|
|
||
|
MEMORY
|
||
|
{
|
||
|
FLASH_TEXT (rw) : ORIGIN = 0, LENGTH = 32256
|
||
|
RAM (xrw) : ORIGIN = 0, LENGTH = 2K
|
||
|
}
|
||
|
|
||
|
_stack_size = 512;
|
||
|
|
||
|
SECTIONS
|
||
|
{
|
||
|
.text :
|
||
|
{
|
||
|
KEEP(*(.isr))
|
||
|
KEEP(*(.reset))
|
||
|
KEEP(*(.text.main)) /* main must follow the reset handler */
|
||
|
*(.text.*)
|
||
|
*(.rodata)
|
||
|
*(.rodata.*)
|
||
|
}
|
||
|
|
||
|
.stack :
|
||
|
{
|
||
|
. += _stack_size;
|
||
|
_stack_top = .;
|
||
|
} >RAM
|
||
|
|
||
|
.data :
|
||
|
{
|
||
|
*(.data)
|
||
|
*(.data*)
|
||
|
} >RAM AT>FLASH_TEXT
|
||
|
|
||
|
.bss :
|
||
|
{
|
||
|
_sbss = .;
|
||
|
*(.bss)
|
||
|
*(.bss*)
|
||
|
*(COMMON)
|
||
|
_ebss = .;
|
||
|
_heap_start = .;
|
||
|
} >RAM
|
||
|
}
|