aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-10-30 10:59:07 +0100
committerGitHub <noreply@github.com>2018-10-30 10:59:07 +0100
commitde479b09055ac8dec74558209a9abff3957da81f (patch)
tree9389f76255bc1138f2549e0c476a76c8b0a73e68
parent3a6ac16259af8ae6bc6abf8ef1713152fa67f771 (diff)
parent2f16c46918fd10328ac5361da2e10a22de64f833 (diff)
downloadpicorv32-de479b09055ac8dec74558209a9abff3957da81f.tar.gz
picorv32-de479b09055ac8dec74558209a9abff3957da81f.zip
Merge pull request #101 from mmicko/master
Alignment fix for global symbols fixes #97
-rw-r--r--picosoc/sections.lds1
1 files changed, 1 insertions, 0 deletions
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