2018-12-04 07:48:18 -05:00
|
|
|
/* Memory layout for bootloader and internal filesystem configuration (this here describes the app part):
|
|
|
|
|
|
|
|
FLASH_TEXT .isr_vector
|
|
|
|
FLASH_TEXT .text
|
|
|
|
FLASH_TEXT .data
|
|
|
|
|
|
|
|
RAM .data
|
|
|
|
RAM .bss
|
|
|
|
RAM .heap
|
|
|
|
RAM .stack
|
|
|
|
*/
|
|
|
|
|
|
|
|
ENTRY(Reset_Handler)
|
|
|
|
|
|
|
|
/* define output sections */
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
/* The startup code goes first into FLASH */
|
|
|
|
.isr_vector :
|
|
|
|
{
|
|
|
|
. = ALIGN(4);
|
|
|
|
KEEP(*(.isr_vector)) /* Startup code */
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
} >FLASH_TEXT
|
|
|
|
|
|
|
|
/* The program code and other data goes into FLASH */
|
|
|
|
.text :
|
|
|
|
{
|
|
|
|
. = ALIGN(4);
|
|
|
|
*(.text*) /* .text* sections (code) */
|
|
|
|
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
|
|
|
|
/* *(.glue_7) */ /* glue arm to thumb code */
|
|
|
|
/* *(.glue_7t) */ /* glue thumb to arm code */
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
_etext = .; /* define a global symbol at end of code */
|
|
|
|
} >FLASH_TEXT
|
|
|
|
|
2020-10-29 08:07:51 -04:00
|
|
|
INCLUDE common_extratext_data_in_flash_text.ld
|
|
|
|
INCLUDE common_bss_heap_stack.ld
|
2018-12-04 07:48:18 -05:00
|
|
|
}
|