Added a optional .reserved region between .vector_table and .text, set text_offset in memory.x to override default value of 0
+text_offset = 0;
+
INCLUDE memory.x
SECTIONS
@@ -17,6 +19,11 @@ SECTIONS
_einterrupts = .;
} > FLASH
+ .reserved : ALIGN(4)
+ {
+ . += text_offset;
+ } > FLASH
+
.text : ALIGN(4)
{
/* Put reset handler first in .text section so it ends up as the entry */
