From d0fe451276c6ff6274e4d22e5e7f00b3748b3641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Mon, 24 May 2021 03:57:02 +0200 Subject: [PATCH] make bss and data 16 byte aligned --- startup/stm32f030.ld | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/startup/stm32f030.ld b/startup/stm32f030.ld index 50867f5..2da6bb4 100644 --- a/startup/stm32f030.ld +++ b/startup/stm32f030.ld @@ -77,8 +77,8 @@ SECTIONS { PROVIDE_HIDDEN (__preinit_array_start = .); KEEP (*(.preinit_array*)) - . = ALIGN(4); PROVIDE_HIDDEN (__preinit_array_end = .); + . = ALIGN(4); } >FLASH .init_array : ALIGN(4) @@ -86,8 +86,8 @@ SECTIONS PROVIDE_HIDDEN (__init_array_start = .); KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array*)) - . = ALIGN(4); PROVIDE_HIDDEN (__init_array_end = .); + . = ALIGN(4); } >FLASH .fini_array : ALIGN(4) @@ -95,13 +95,13 @@ SECTIONS PROVIDE_HIDDEN (__fini_array_start = .); KEEP (*(.fini_array*)) KEEP (*(SORT(.fini_array.*))) - . = ALIGN(4); PROVIDE_HIDDEN (__fini_array_end = .); + . = ALIGN(4); } >FLASH /* Initialized Data */ __ld_load_data = LOADADDR(.data); - .data : ALIGN(4) + .data : ALIGN(16) { __ld_sdata = .; *(.data) @@ -111,7 +111,7 @@ SECTIONS } >RAM AT> FLASH /* Uninitialized static data */ - .bss : ALIGN(4) + .bss : ALIGN(16) { __ld_sbss = .; *(.bss) @@ -121,7 +121,7 @@ SECTIONS __ld_ebss = .; } >RAM - .heap_stack (NOLOAD) : ALIGN(4) + .heap_stack (NOLOAD) : ALIGN(16) { __ld_sheap = .; . = . + __ld_heap_size;