Alignment fix for global symbols fixes #97

This commit is contained in:
Miodrag Milanovic 2018-10-28 18:48:19 +01:00
parent 3a6ac16259
commit 2f16c46918
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ SECTIONS {
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
*(.srodata) /* .rodata sections (constants, strings, etc.) */
*(.srodata*) /* .rodata* sections (constants, strings, etc.) */
. = ALIGN(4);
_etext = .; /* define a global symbol at end of code */
_sidata = _etext; /* This is used by the startup in order to initialize the .data secion */
} >FLASH