Skip to content

Commit 2d95fcb

Browse files
author
Deepika
committed
Onsemi: 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
1 parent 26dc7bd commit 2d95fcb

File tree

1 file changed

+4
-4
lines changed
  • targets/TARGET_ONSEMI/TARGET_NCS36510/device/TOOLCHAIN_GCC_ARM

1 file changed

+4
-4
lines changed

targets/TARGET_ONSEMI/TARGET_NCS36510/device/TOOLCHAIN_GCC_ARM/NCS36510.ld

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ MEMORY {
5353
{
5454
__vector_table = .;
5555
KEEP(*(.vector_table))
56-
. = ALIGN(4);
56+
. = ALIGN(8);
5757
} > VECTORS
5858

5959

@@ -104,20 +104,20 @@ MEMORY {
104104
*(vtable)
105105
*(.data*)
106106

107-
. = ALIGN(4);
107+
. = ALIGN(8);
108108
/* preinit data */
109109
PROVIDE_HIDDEN (__preinit_array_start = .);
110110
KEEP(*(.preinit_array))
111111
PROVIDE_HIDDEN (__preinit_array_end = .);
112112

113-
. = ALIGN(4);
113+
. = ALIGN(8);
114114
/* init data */
115115
PROVIDE_HIDDEN (__init_array_start = .);
116116
KEEP(*(SORT(.init_array.*)))
117117
KEEP(*(.init_array))
118118
PROVIDE_HIDDEN (__init_array_end = .);
119119

120-
. = ALIGN(4);
120+
. = ALIGN(8);
121121
/* finit data */
122122
PROVIDE_HIDDEN (__fini_array_start = .);
123123
KEEP(*(SORT(.fini_array.*)))

0 commit comments

Comments
 (0)