Using mspdebug gdb and load from within gdb will also flash the init_array, as expected. Using mspdebug prog will not flash the init_array, and programs depending on that will fail.
This path will simply also extract INIT_ARRAY sections for the prog command.
In newer Versions of
msp430-gcc
the init_array is moved to another section.rodata2
:The type of this section is
INIT_ARRAY
and notPROGBITS
:Using
mspdebug gdb
andload
from within gdb will also flash the init_array, as expected. Usingmspdebug prog
will not flash the init_array, and programs depending on that will fail.This path will simply also extract
INIT_ARRAY
sections for theprog
command.