circuitpython/ports/stm32/boards/common_basic.ld
Andrew Leech fa57ee971b stm32/boards: Consolidate linker snippets to reduce duplication.
This commit uses the REGION_ALIAS GNU linker command to simplify the linker
snippets and consolidate the duplication.

Signed-off-by: Damien George <damien@micropython.org>
2023-01-13 15:14:26 +11:00

25 lines
446 B
Plaintext

/* Memory layout for basic configuration:
FLASH .isr_vector
FLASH .text
FLASH .data
RAM .data
RAM .bss
RAM .heap
RAM .stack
*/
ENTRY(Reset_Handler)
REGION_ALIAS("FLASH_COMMON", FLASH);
/* define output sections */
SECTIONS
{
INCLUDE common_isr.ld
INCLUDE common_text.ld
INCLUDE common_extratext_data_in_flash.ld
INCLUDE common_bss_heap_stack.ld
}