.text
section relocationWith clock speed above 100MHz fetching instructions from Flash becomes a performance bottleneck, so prior to the execution program instructions must be relocated to RAM. Relocation of .text
section requires introduction of additional executable section residing in Flash. Let's call this section .boot
.
As opposed to .text
, .data
etc. conventional sections .boot
section name is not conventional. To mark this section as executable section we use assembly section
directive with x
flag.
.section .boot, "x"
This section will contain all the relocation instructions.