Further iomprove alignement problems in linkerscript

This commit is contained in:
Mario Hüttel 2021-05-24 12:19:42 +02:00
parent d0fe451276
commit 63fb9c4cde

View File

@ -68,8 +68,8 @@ SECTIONS
{ {
__exidx_start = .; __exidx_start = .;
*(.ARM.exidx*) *(.ARM.exidx*)
. = ALIGN(4);
__exidx_end = .; __exidx_end = .;
. = ALIGN(4);
} >FLASH } >FLASH
/* Constructor/Destructor tables */ /* Constructor/Destructor tables */
@ -78,7 +78,7 @@ SECTIONS
PROVIDE_HIDDEN (__preinit_array_start = .); PROVIDE_HIDDEN (__preinit_array_start = .);
KEEP (*(.preinit_array*)) KEEP (*(.preinit_array*))
PROVIDE_HIDDEN (__preinit_array_end = .); PROVIDE_HIDDEN (__preinit_array_end = .);
. = ALIGN(4); . = ALIGN(4);
} >FLASH } >FLASH
.init_array : ALIGN(4) .init_array : ALIGN(4)
@ -87,7 +87,7 @@ SECTIONS
KEEP (*(SORT(.init_array.*))) KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array*)) KEEP (*(.init_array*))
PROVIDE_HIDDEN (__init_array_end = .); PROVIDE_HIDDEN (__init_array_end = .);
. = ALIGN(4); . = ALIGN(4);
} >FLASH } >FLASH
.fini_array : ALIGN(4) .fini_array : ALIGN(4)
@ -96,12 +96,12 @@ SECTIONS
KEEP (*(.fini_array*)) KEEP (*(.fini_array*))
KEEP (*(SORT(.fini_array.*))) KEEP (*(SORT(.fini_array.*)))
PROVIDE_HIDDEN (__fini_array_end = .); PROVIDE_HIDDEN (__fini_array_end = .);
. = ALIGN(4); . = ALIGN(4);
} >FLASH } >FLASH
/* Initialized Data */ /* Initialized Data */
__ld_load_data = LOADADDR(.data); __ld_load_data = LOADADDR(.data);
.data : ALIGN(16) .data : ALIGN(4)
{ {
__ld_sdata = .; __ld_sdata = .;
*(.data) *(.data)
@ -111,7 +111,7 @@ SECTIONS
} >RAM AT> FLASH } >RAM AT> FLASH
/* Uninitialized static data */ /* Uninitialized static data */
.bss : ALIGN(16) .bss : ALIGN(4)
{ {
__ld_sbss = .; __ld_sbss = .;
*(.bss) *(.bss)
@ -121,7 +121,7 @@ SECTIONS
__ld_ebss = .; __ld_ebss = .;
} >RAM } >RAM
.heap_stack (NOLOAD) : ALIGN(16) .heap_stack (NOLOAD) : ALIGN(4)
{ {
__ld_sheap = .; __ld_sheap = .;
. = . + __ld_heap_size; . = . + __ld_heap_size;