aboutsummaryrefslogtreecommitdiff
path: root/linker/linker_script.ld
diff options
context:
space:
mode:
Diffstat (limited to 'linker/linker_script.ld')
-rw-r--r--linker/linker_script.ld4
1 files changed, 3 insertions, 1 deletions
diff --git a/linker/linker_script.ld b/linker/linker_script.ld
index 1817fbd..83dcca0 100644
--- a/linker/linker_script.ld
+++ b/linker/linker_script.ld
@@ -9,16 +9,18 @@ SECTIONS
{
/* This is where the code goes. */
. = ORIGIN(flash);
- .text : {
+ .text ALIGN(0x100) : {
*(.vectors); /* All .vector sections go here. */
*(.text); /* All .text sections go here. */
} >flash
.data : {
+ . = ALIGN(0x04);
/* Data segment as defined in the flash. */
INIT_DATA_VALUES = LOADADDR(.data);
/* Data segment where it will be in memory. */
+ . = ALIGN(0x04);
DATA_SEGMENT_START = .;
*(.data);
DATA_SEGMENT_STOP = .;