From 2f16c46918fd10328ac5361da2e10a22de64f833 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 28 Oct 2018 18:48:19 +0100 Subject: [PATCH] Alignment fix for global symbols fixes #97 --- picosoc/sections.lds | 1 + 1 file changed, 1 insertion(+) diff --git a/picosoc/sections.lds b/picosoc/sections.lds index 6c83665..5f74459 100644 --- a/picosoc/sections.lds +++ b/picosoc/sections.lds @@ -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