diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2018-01-15 15:32:16 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2018-01-15 15:32:16 -0700 |
commit | 67d97164b358ae5c9c0038e58302a6f89c7bb3c5 (patch) | |
tree | bdabe749be921915f880dcc3c003333df2e9538c /system-clock/linker/linker_script.ld | |
parent | 8b655d6a2ee66ec3c371b8fe8b4c960bc3050fa2 (diff) | |
download | stm32l4-67d97164b358ae5c9c0038e58302a6f89c7bb3c5.tar.gz stm32l4-67d97164b358ae5c9c0038e58302a6f89c7bb3c5.tar.bz2 stm32l4-67d97164b358ae5c9c0038e58302a6f89c7bb3c5.zip |
use uint32_t for copying the data sections.
Diffstat (limited to 'system-clock/linker/linker_script.ld')
-rw-r--r-- | system-clock/linker/linker_script.ld | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/system-clock/linker/linker_script.ld b/system-clock/linker/linker_script.ld index b9a8d4b..348d03b 100644 --- a/system-clock/linker/linker_script.ld +++ b/system-clock/linker/linker_script.ld @@ -22,11 +22,15 @@ SECTIONS DATA_SEGMENT_START = .; *(.data); DATA_SEGMENT_STOP = .; + + /* Align by 4 so we can optimize the copier to use uint32's. */ + . = ALIGN(0x04); } >sram1 AT>flash BSS_START = .; .bss : { *(.bss); + . = ALIGN(0x04); } > sram1 BSS_END = .; } |