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;