Further iomprove alignement problems in linkerscript
This commit is contained in:
parent
d0fe451276
commit
63fb9c4cde
@ -68,8 +68,8 @@ SECTIONS
|
||||
{
|
||||
__exidx_start = .;
|
||||
*(.ARM.exidx*)
|
||||
. = ALIGN(4);
|
||||
__exidx_end = .;
|
||||
. = ALIGN(4);
|
||||
} >FLASH
|
||||
|
||||
/* Constructor/Destructor tables */
|
||||
@ -78,7 +78,7 @@ SECTIONS
|
||||
PROVIDE_HIDDEN (__preinit_array_start = .);
|
||||
KEEP (*(.preinit_array*))
|
||||
PROVIDE_HIDDEN (__preinit_array_end = .);
|
||||
. = ALIGN(4);
|
||||
. = ALIGN(4);
|
||||
} >FLASH
|
||||
|
||||
.init_array : ALIGN(4)
|
||||
@ -87,7 +87,7 @@ SECTIONS
|
||||
KEEP (*(SORT(.init_array.*)))
|
||||
KEEP (*(.init_array*))
|
||||
PROVIDE_HIDDEN (__init_array_end = .);
|
||||
. = ALIGN(4);
|
||||
. = ALIGN(4);
|
||||
} >FLASH
|
||||
|
||||
.fini_array : ALIGN(4)
|
||||
@ -96,12 +96,12 @@ SECTIONS
|
||||
KEEP (*(.fini_array*))
|
||||
KEEP (*(SORT(.fini_array.*)))
|
||||
PROVIDE_HIDDEN (__fini_array_end = .);
|
||||
. = ALIGN(4);
|
||||
. = ALIGN(4);
|
||||
} >FLASH
|
||||
|
||||
/* Initialized Data */
|
||||
__ld_load_data = LOADADDR(.data);
|
||||
.data : ALIGN(16)
|
||||
.data : ALIGN(4)
|
||||
{
|
||||
__ld_sdata = .;
|
||||
*(.data)
|
||||
@ -111,7 +111,7 @@ SECTIONS
|
||||
} >RAM AT> FLASH
|
||||
|
||||
/* Uninitialized static data */
|
||||
.bss : ALIGN(16)
|
||||
.bss : ALIGN(4)
|
||||
{
|
||||
__ld_sbss = .;
|
||||
*(.bss)
|
||||
@ -121,7 +121,7 @@ SECTIONS
|
||||
__ld_ebss = .;
|
||||
} >RAM
|
||||
|
||||
.heap_stack (NOLOAD) : ALIGN(16)
|
||||
.heap_stack (NOLOAD) : ALIGN(4)
|
||||
{
|
||||
__ld_sheap = .;
|
||||
. = . + __ld_heap_size;
|
||||
|
Loading…
Reference in New Issue
Block a user