mirror of https://github.com/ARMmbed/mbed-os.git
Ublox: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to remove deprecated flags all linker files (GCC and IAR as well to have uniformity) should strictly align to 8-byte boundarypull/8479/head
parent
710ec90213
commit
2969394d36
|
@ -24,7 +24,7 @@ SECTIONS
|
||||||
/* Code and const data */
|
/* Code and const data */
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(8);
|
||||||
*(.text)
|
*(.text)
|
||||||
*(.text*)
|
*(.text*)
|
||||||
|
|
||||||
|
@ -77,20 +77,20 @@ SECTIONS
|
||||||
*(.data)
|
*(.data)
|
||||||
*(.data*)
|
*(.data*)
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(8);
|
||||||
/* preinit data */
|
/* preinit data */
|
||||||
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(8);
|
||||||
/* init data */
|
/* init data */
|
||||||
PROVIDE_HIDDEN (__init_array_start = .);
|
PROVIDE_HIDDEN (__init_array_start = .);
|
||||||
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(8);
|
||||||
/* finit data */
|
/* finit data */
|
||||||
PROVIDE_HIDDEN (__fini_array_start = .);
|
PROVIDE_HIDDEN (__fini_array_start = .);
|
||||||
KEEP(*(SORT(.fini_array.*)))
|
KEEP(*(SORT(.fini_array.*)))
|
||||||
|
@ -105,12 +105,12 @@ SECTIONS
|
||||||
/* Uninitialised data */
|
/* Uninitialised data */
|
||||||
.bss (NOLOAD):
|
.bss (NOLOAD):
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(8);
|
||||||
__bss_start__ = .;
|
__bss_start__ = .;
|
||||||
*(.bss)
|
*(.bss)
|
||||||
*(.bss*)
|
*(.bss*)
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
. = ALIGN(4);
|
. = ALIGN(8);
|
||||||
__bss_end__ = .;
|
__bss_end__ = .;
|
||||||
} > RAM
|
} > RAM
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ SECTIONS
|
||||||
|
|
||||||
.resume (NOLOAD):
|
.resume (NOLOAD):
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(8);
|
||||||
*(preserve)
|
*(preserve)
|
||||||
} > RAM
|
} > RAM
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ SECTIONS
|
||||||
/* The size of this section (256 bytes) is already taken off the size of RAM so there is no danger of the heap overflowing into it */
|
/* The size of this section (256 bytes) is already taken off the size of RAM so there is no danger of the heap overflowing into it */
|
||||||
.ipc_mailbox (NOLOAD):
|
.ipc_mailbox (NOLOAD):
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(8);
|
||||||
__ipc_mailbox_start__ = .;
|
__ipc_mailbox_start__ = .;
|
||||||
*(.ipc_mailbox)
|
*(.ipc_mailbox)
|
||||||
*(.ipc_mailbox*)
|
*(.ipc_mailbox*)
|
||||||
|
|
Loading…
Reference in New Issue