Skip to content

Commit 1a6048f

Browse files
author
Deepika
committed
Realtek: 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 05fe53a commit 1a6048f

File tree

1 file changed

+7
-7
lines changed
  • targets/TARGET_Realtek/TARGET_AMEBA/TARGET_MCU_RTL8195A/device/TOOLCHAIN_GCC_ARM

1 file changed

+7
-7
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/TARGET_MCU_RTL8195A/device/TOOLCHAIN_GCC_ARM/rtl8195a.ld

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ SECTIONS
6666

6767
.text.sram1 :
6868
{
69-
. = ALIGN(4);
69+
. = ALIGN(8);
7070
*rtl8195a_crypto*.o (.text* .rodata*)
7171
*mbedtls*.o (.text* .rodata*)
7272
*libc.a: (.text* .rodata*)
@@ -77,7 +77,7 @@ SECTIONS
7777

7878
.text.sram2 :
7979
{
80-
. = ALIGN(4);
80+
. = ALIGN(8);
8181
*(.text*)
8282

8383
KEEP(*(.init))
@@ -107,7 +107,7 @@ SECTIONS
107107

108108
.data.sram1 :
109109
{
110-
. = ALIGN(4);
110+
. = ALIGN(8);
111111
__sram_data_start__ = .;
112112
*rtl8195a_crypto*.o (.data*)
113113
*mbedtls*.o (.data*)
@@ -121,27 +121,27 @@ SECTIONS
121121
*(.data*)
122122
*(.sdram.data*)
123123

124-
. = ALIGN(4);
124+
. = ALIGN(8);
125125
/* preinit data */
126126
PROVIDE (__preinit_array_start = .);
127127
KEEP(*(.preinit_array))
128128
PROVIDE (__preinit_array_end = .);
129129

130-
. = ALIGN(4);
130+
. = ALIGN(8);
131131
/* init data */
132132
PROVIDE (__init_array_start = .);
133133
KEEP(*(SORT(.init_array.*)))
134134
KEEP(*(.init_array))
135135
PROVIDE (__init_array_end = .);
136136

137-
. = ALIGN(4);
137+
. = ALIGN(8);
138138
/* finit data */
139139
PROVIDE (__fini_array_start = .);
140140
KEEP(*(SORT(.fini_array.*)))
141141
KEEP(*(.fini_array))
142142
PROVIDE (__fini_array_end = .);
143143

144-
. = ALIGN(4);
144+
. = ALIGN(8);
145145

146146
__sdram_data_end__ = .;
147147
/* All data end */

0 commit comments

Comments
 (0)