From 67d97164b358ae5c9c0038e58302a6f89c7bb3c5 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Mon, 15 Jan 2018 15:32:16 -0700 Subject: use uint32_t for copying the data sections. --- system-clock/linker/linker_script.ld | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'system-clock/linker/linker_script.ld') 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 = .; } -- cgit