Changed from specifying offset to specifying placement of .text
-text_offset = 0;
-
INCLUDE memory.x
SECTIONS
@@ -19,9 +17,12 @@ SECTIONS
_einterrupts = .;
} > FLASH
+ PROVIDE(_text_start = _einterrupts);
+ _reserved_size = _text_start - _einterrupts;
+
.reserved : ALIGN(4)
{
- . += text_offset;
+ . += _reserved_size;
} > FLASH
.text : ALIGN(4)
