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 */
@ -101,7 +101,7 @@ SECTIONS
/* 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;