ARM: 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 boundary
pull/8024/head
Deepika 2018-09-19 10:12:51 -05:00 committed by deepikabhavnani
parent a6997ab970
commit 2a8ae84cb1
7 changed files with 76 additions and 76 deletions

View File

@ -77,12 +77,12 @@ SECTIONS
{
__vector_table = .;
KEEP(*(.vector_table))
. = ALIGN(4);
. = ALIGN(8);
} > VECTORS
.text :
{
. = ALIGN(4);
. = ALIGN(8);
*(.text*)
KEEP(*(.init))
@ -121,30 +121,30 @@ SECTIONS
.interrupts_ram :
{
. = ALIGN(4);
. = ALIGN(8);
__VECTOR_RAM__ = .;
__interrupts_ram_start__ = .; /* Create a global symbol at data start */
. += M_VECTOR_RAM_SIZE;
. = ALIGN(4);
. = ALIGN(8);
__interrupts_ram_end__ = .; /* Define a global symbol at data end */
} > RAM
.data :
{
PROVIDE(__etext = LOADADDR(.data));
. = ALIGN(4);
. = ALIGN(8);
__data_start__ = .;
*(vtable)
*(.data)
*(.data*)
. = ALIGN(4);
. = ALIGN(8);
/* preinit data */
PROVIDE (__preinit_array_start = .);
KEEP(*(.preinit_array))
PROVIDE (__preinit_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* init data */
PROVIDE (__init_array_start = .);
KEEP(*(SORT(.init_array.*)))
@ -152,14 +152,14 @@ SECTIONS
PROVIDE (__init_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* finit data */
PROVIDE (__fini_array_start = .);
KEEP(*(SORT(.fini_array.*)))
KEEP(*(.fini_array))
PROVIDE (__fini_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* All data end */
__data_end__ = .;
@ -177,13 +177,13 @@ SECTIONS
.bss :
{
. = ALIGN(4);
. = ALIGN(8);
__START_BSS = .;
__bss_start__ = .;
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
. = ALIGN(8);
__bss_end__ = .;
__END_BSS = .;

View File

@ -77,12 +77,12 @@ SECTIONS
{
__vector_table = .;
KEEP(*(.vector_table))
. = ALIGN(4);
. = ALIGN(8);
} > VECTORS
.text :
{
. = ALIGN(4);
. = ALIGN(8);
*(.text*)
KEEP(*(.init))
@ -121,30 +121,30 @@ SECTIONS
.interrupts_ram :
{
. = ALIGN(4);
. = ALIGN(8);
__VECTOR_RAM__ = .;
__interrupts_ram_start__ = .; /* Create a global symbol at data start */
. += M_VECTOR_RAM_SIZE;
. = ALIGN(4);
. = ALIGN(8);
__interrupts_ram_end__ = .; /* Define a global symbol at data end */
} > RAM
.data :
{
PROVIDE(__etext = LOADADDR(.data));
. = ALIGN(4);
. = ALIGN(8);
__data_start__ = .;
*(vtable)
*(.data)
*(.data*)
. = ALIGN(4);
. = ALIGN(8);
/* preinit data */
PROVIDE (__preinit_array_start = .);
KEEP(*(.preinit_array))
PROVIDE (__preinit_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* init data */
PROVIDE (__init_array_start = .);
KEEP(*(SORT(.init_array.*)))
@ -152,14 +152,14 @@ SECTIONS
PROVIDE (__init_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* finit data */
PROVIDE (__fini_array_start = .);
KEEP(*(SORT(.fini_array.*)))
KEEP(*(.fini_array))
PROVIDE (__fini_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* All data end */
__data_end__ = .;
@ -177,13 +177,13 @@ SECTIONS
.bss :
{
. = ALIGN(4);
. = ALIGN(8);
__START_BSS = .;
__bss_start__ = .;
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
. = ALIGN(8);
__bss_end__ = .;
__END_BSS = .;

View File

@ -77,12 +77,12 @@ SECTIONS
{
__vector_table = .;
KEEP(*(.vector_table))
. = ALIGN(4);
. = ALIGN(8);
} > VECTORS
.text :
{
. = ALIGN(4);
. = ALIGN(8);
*(.text*)
KEEP(*(.init))
@ -121,30 +121,30 @@ SECTIONS
.interrupts_ram :
{
. = ALIGN(4);
. = ALIGN(8);
__VECTOR_RAM__ = .;
__interrupts_ram_start__ = .; /* Create a global symbol at data start */
. += M_VECTOR_RAM_SIZE;
. = ALIGN(4);
. = ALIGN(8);
__interrupts_ram_end__ = .; /* Define a global symbol at data end */
} > RAM
.data :
{
PROVIDE(__etext = LOADADDR(.data));
. = ALIGN(4);
. = ALIGN(8);
__data_start__ = .;
*(vtable)
*(.data)
*(.data*)
. = ALIGN(4);
. = ALIGN(8);
/* preinit data */
PROVIDE (__preinit_array_start = .);
KEEP(*(.preinit_array))
PROVIDE (__preinit_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* init data */
PROVIDE (__init_array_start = .);
KEEP(*(SORT(.init_array.*)))
@ -152,14 +152,14 @@ SECTIONS
PROVIDE (__init_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* finit data */
PROVIDE (__fini_array_start = .);
KEEP(*(SORT(.fini_array.*)))
KEEP(*(.fini_array))
PROVIDE (__fini_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* All data end */
__data_end__ = .;
@ -177,13 +177,13 @@ SECTIONS
.bss :
{
. = ALIGN(4);
. = ALIGN(8);
__START_BSS = .;
__bss_start__ = .;
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
. = ALIGN(8);
__bss_end__ = .;
__END_BSS = .;

View File

@ -77,12 +77,12 @@ SECTIONS
{
__vector_table = .;
KEEP(*(.vector_table))
. = ALIGN(4);
. = ALIGN(8);
} > VECTORS
.text :
{
. = ALIGN(4);
. = ALIGN(8);
*(.text*)
KEEP(*(.init))
@ -121,30 +121,30 @@ SECTIONS
.interrupts_ram :
{
. = ALIGN(4);
. = ALIGN(8);
__VECTOR_RAM__ = .;
__interrupts_ram_start__ = .; /* Create a global symbol at data start */
. += M_VECTOR_RAM_SIZE;
. = ALIGN(4);
. = ALIGN(8);
__interrupts_ram_end__ = .; /* Define a global symbol at data end */
} > RAM
.data :
{
PROVIDE(__etext = LOADADDR(.data));
. = ALIGN(4);
. = ALIGN(8);
__data_start__ = .;
*(vtable)
*(.data)
*(.data*)
. = ALIGN(4);
. = ALIGN(8);
/* preinit data */
PROVIDE (__preinit_array_start = .);
KEEP(*(.preinit_array))
PROVIDE (__preinit_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* init data */
PROVIDE (__init_array_start = .);
KEEP(*(SORT(.init_array.*)))
@ -152,14 +152,14 @@ SECTIONS
PROVIDE (__init_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* finit data */
PROVIDE (__fini_array_start = .);
KEEP(*(SORT(.fini_array.*)))
KEEP(*(.fini_array))
PROVIDE (__fini_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* All data end */
__data_end__ = .;
@ -177,13 +177,13 @@ SECTIONS
.bss :
{
. = ALIGN(4);
. = ALIGN(8);
__START_BSS = .;
__bss_start__ = .;
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
. = ALIGN(8);
__bss_end__ = .;
__END_BSS = .;

View File

@ -77,12 +77,12 @@ SECTIONS
{
__vector_table = .;
KEEP(*(.vector_table))
. = ALIGN(4);
. = ALIGN(8);
} > VECTORS
.text :
{
. = ALIGN(4);
. = ALIGN(8);
*(.text*)
KEEP(*(.init))
@ -121,30 +121,30 @@ SECTIONS
.interrupts_ram :
{
. = ALIGN(4);
. = ALIGN(8);
__VECTOR_RAM__ = .;
__interrupts_ram_start__ = .; /* Create a global symbol at data start */
. += M_VECTOR_RAM_SIZE;
. = ALIGN(4);
. = ALIGN(8);
__interrupts_ram_end__ = .; /* Define a global symbol at data end */
} > RAM
.data :
{
PROVIDE(__etext = LOADADDR(.data));
. = ALIGN(4);
. = ALIGN(8);
__data_start__ = .;
*(vtable)
*(.data)
*(.data*)
. = ALIGN(4);
. = ALIGN(8);
/* preinit data */
PROVIDE (__preinit_array_start = .);
KEEP(*(.preinit_array))
PROVIDE (__preinit_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* init data */
PROVIDE (__init_array_start = .);
KEEP(*(SORT(.init_array.*)))
@ -152,14 +152,14 @@ SECTIONS
PROVIDE (__init_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* finit data */
PROVIDE (__fini_array_start = .);
KEEP(*(SORT(.fini_array.*)))
KEEP(*(.fini_array))
PROVIDE (__fini_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* All data end */
__data_end__ = .;
@ -177,13 +177,13 @@ SECTIONS
.bss :
{
. = ALIGN(4);
. = ALIGN(8);
__START_BSS = .;
__bss_start__ = .;
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
. = ALIGN(8);
__bss_end__ = .;
__END_BSS = .;

View File

@ -75,7 +75,7 @@ SECTIONS
{
__vector_table = .;
KEEP(*(.vector_table))
. = ALIGN(4);
. = ALIGN(8);
} > VECTORS
.text :
@ -124,30 +124,30 @@ SECTIONS
.interrupts_ram :
{
. = ALIGN(4);
. = ALIGN(8);
__VECTOR_RAM__ = .;
__interrupts_ram_start__ = .; /* Create a global symbol at data start */
. += M_VECTOR_RAM_SIZE;
. = ALIGN(4);
. = ALIGN(8);
__interrupts_ram_end__ = .; /* Define a global symbol at data end */
} > RAM
.data :
{
PROVIDE(__etext = LOADADDR(.data));
. = ALIGN(4);
. = ALIGN(8);
__data_start__ = .;
*(vtable)
*(.data)
*(.data*)
. = ALIGN(4);
. = ALIGN(8);
/* preinit data */
PROVIDE (__preinit_array_start = .);
KEEP(*(.preinit_array))
PROVIDE (__preinit_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* init data */
PROVIDE (__init_array_start = .);
KEEP(*(SORT(.init_array.*)))
@ -155,14 +155,14 @@ SECTIONS
PROVIDE (__init_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* finit data */
PROVIDE (__fini_array_start = .);
KEEP(*(SORT(.fini_array.*)))
KEEP(*(.fini_array))
PROVIDE (__fini_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* All data end */
__data_end__ = .;
@ -182,13 +182,13 @@ SECTIONS
.bss :
{
. = ALIGN(4);
. = ALIGN(8);
__START_BSS = .;
__bss_start__ = .;
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
. = ALIGN(8);
__bss_end__ = .;
__END_BSS = .;

View File

@ -72,12 +72,12 @@ SECTIONS
{
__vector_table = .;
KEEP(*(.vector_table))
. = ALIGN(4);
. = ALIGN(8);
} > VECTORS
.text :
{
. = ALIGN(4);
. = ALIGN(8);
*(.text*)
KEEP(*(.init))
@ -116,30 +116,30 @@ SECTIONS
.interrupts_ram :
{
. = ALIGN(4);
. = ALIGN(8);
__VECTOR_RAM__ = .;
__interrupts_ram_start__ = .; /* Create a global symbol at data start */
. += M_VECTOR_RAM_SIZE;
. = ALIGN(4);
. = ALIGN(8);
__interrupts_ram_end__ = .; /* Define a global symbol at data end */
} > RAM
.data :
{
PROVIDE(__etext = LOADADDR(.data));
. = ALIGN(4);
. = ALIGN(8);
__data_start__ = .;
*(vtable)
*(.data)
*(.data*)
. = ALIGN(4);
. = ALIGN(8);
/* preinit data */
PROVIDE (__preinit_array_start = .);
KEEP(*(.preinit_array))
PROVIDE (__preinit_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* init data */
PROVIDE (__init_array_start = .);
KEEP(*(SORT(.init_array.*)))
@ -147,14 +147,14 @@ SECTIONS
PROVIDE (__init_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* finit data */
PROVIDE (__fini_array_start = .);
KEEP(*(SORT(.fini_array.*)))
KEEP(*(.fini_array))
PROVIDE (__fini_array_end = .);
. = ALIGN(4);
. = ALIGN(8);
/* All data end */
__data_end__ = .;
@ -172,13 +172,13 @@ SECTIONS
.bss :
{
. = ALIGN(4);
. = ALIGN(8);
__START_BSS = .;
__bss_start__ = .;
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
. = ALIGN(8);
__bss_end__ = .;
__END_BSS = .;