The .text section holds program code. In a bare-metal linker script, map it to FLASH so the code can execute in place. section 4.1.3 section 4.1.1
.text :
{
*(.text .text.*)
} > FLASH
.rodata :
{
*(.rodata .rodata.*)
} > FLASH
This linker rule gathers .text input sections and places them in FLASH. section 4.1.3
