diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-10-28 18:48:19 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-10-28 18:48:19 +0100 |
commit | 2f16c46918fd10328ac5361da2e10a22de64f833 (patch) | |
tree | 9389f76255bc1138f2549e0c476a76c8b0a73e68 | |
parent | 3a6ac16259af8ae6bc6abf8ef1713152fa67f771 (diff) | |
download | picorv32-2f16c46918fd10328ac5361da2e10a22de64f833.tar.gz picorv32-2f16c46918fd10328ac5361da2e10a22de64f833.zip |
Alignment fix for global symbols fixes #97
-rw-r--r-- | picosoc/sections.lds | 1 |
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 |