make bss and data 16 byte aligned

This commit is contained in:
Mario Hüttel 2021-05-24 03:57:02 +02:00
parent e42b985db3
commit d0fe451276

View File

@ -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;