Skip to content

Commit 05fe53a

Browse files
author
Deepika
committed
Wiznet: 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 2d95fcb commit 05fe53a

File tree

3 files changed

+18
-18
lines changed
  • targets/TARGET_WIZNET/TARGET_W7500x
    • TARGET_WIZwiki_W7500/device/TOOLCHAIN_GCC_ARM
    • TARGET_WIZwiki_W7500ECO/device/TOOLCHAIN_GCC_ARM
    • TARGET_WIZwiki_W7500P/device/TOOLCHAIN_GCC_ARM

3 files changed

+18
-18
lines changed

targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/device/TOOLCHAIN_GCC_ARM/W7500.ld

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,41 +85,41 @@ SECTIONS
8585
*(vtable)
8686
*(.data*)
8787

88-
. = ALIGN(4);
88+
. = ALIGN(8);
8989
/* preinit data */
9090
PROVIDE_HIDDEN (__preinit_array_start = .);
9191
KEEP(*(.preinit_array))
9292
PROVIDE_HIDDEN (__preinit_array_end = .);
9393

94-
. = ALIGN(4);
94+
. = ALIGN(8);
9595
/* init data */
9696
PROVIDE_HIDDEN (__init_array_start = .);
9797
KEEP(*(SORT(.init_array.*)))
9898
KEEP(*(.init_array))
9999
PROVIDE_HIDDEN (__init_array_end = .);
100100

101101

102-
. = ALIGN(4);
102+
. = ALIGN(8);
103103
/* finit data */
104104
PROVIDE_HIDDEN (__fini_array_start = .);
105105
KEEP(*(SORT(.fini_array.*)))
106106
KEEP(*(.fini_array))
107107
PROVIDE_HIDDEN (__fini_array_end = .);
108108

109109
KEEP(*(.jcr*))
110-
. = ALIGN(4);
110+
. = ALIGN(8);
111111
/* All data end */
112112
__data_end__ = .;
113113

114114
} > RAM
115115

116116
.bss :
117117
{
118-
. = ALIGN(4);
118+
. = ALIGN(8);
119119
__bss_start__ = .;
120120
*(.bss*)
121121
*(COMMON)
122-
. = ALIGN(4);
122+
. = ALIGN(8);
123123
__bss_end__ = .;
124124
} > RAM
125125

targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/device/TOOLCHAIN_GCC_ARM/W7500.ld

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,41 +85,41 @@ SECTIONS
8585
*(vtable)
8686
*(.data*)
8787

88-
. = ALIGN(4);
88+
. = ALIGN(8);
8989
/* preinit data */
9090
PROVIDE_HIDDEN (__preinit_array_start = .);
9191
KEEP(*(.preinit_array))
9292
PROVIDE_HIDDEN (__preinit_array_end = .);
9393

94-
. = ALIGN(4);
94+
. = ALIGN(8);
9595
/* init data */
9696
PROVIDE_HIDDEN (__init_array_start = .);
9797
KEEP(*(SORT(.init_array.*)))
9898
KEEP(*(.init_array))
9999
PROVIDE_HIDDEN (__init_array_end = .);
100100

101101

102-
. = ALIGN(4);
102+
. = ALIGN(8);
103103
/* finit data */
104104
PROVIDE_HIDDEN (__fini_array_start = .);
105105
KEEP(*(SORT(.fini_array.*)))
106106
KEEP(*(.fini_array))
107107
PROVIDE_HIDDEN (__fini_array_end = .);
108108

109109
KEEP(*(.jcr*))
110-
. = ALIGN(4);
110+
. = ALIGN(8);
111111
/* All data end */
112112
__data_end__ = .;
113113

114114
} > RAM
115115

116116
.bss :
117117
{
118-
. = ALIGN(4);
118+
. = ALIGN(8);
119119
__bss_start__ = .;
120120
*(.bss*)
121121
*(COMMON)
122-
. = ALIGN(4);
122+
. = ALIGN(8);
123123
__bss_end__ = .;
124124
} > RAM
125125

targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/device/TOOLCHAIN_GCC_ARM/W7500.ld

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,41 +85,41 @@ SECTIONS
8585
*(vtable)
8686
*(.data*)
8787

88-
. = ALIGN(4);
88+
. = ALIGN(8);
8989
/* preinit data */
9090
PROVIDE_HIDDEN (__preinit_array_start = .);
9191
KEEP(*(.preinit_array))
9292
PROVIDE_HIDDEN (__preinit_array_end = .);
9393

94-
. = ALIGN(4);
94+
. = ALIGN(8);
9595
/* init data */
9696
PROVIDE_HIDDEN (__init_array_start = .);
9797
KEEP(*(SORT(.init_array.*)))
9898
KEEP(*(.init_array))
9999
PROVIDE_HIDDEN (__init_array_end = .);
100100

101101

102-
. = ALIGN(4);
102+
. = ALIGN(8);
103103
/* finit data */
104104
PROVIDE_HIDDEN (__fini_array_start = .);
105105
KEEP(*(SORT(.fini_array.*)))
106106
KEEP(*(.fini_array))
107107
PROVIDE_HIDDEN (__fini_array_end = .);
108108

109109
KEEP(*(.jcr*))
110-
. = ALIGN(4);
110+
. = ALIGN(8);
111111
/* All data end */
112112
__data_end__ = .;
113113

114114
} > RAM
115115

116116
.bss :
117117
{
118-
. = ALIGN(4);
118+
. = ALIGN(8);
119119
__bss_start__ = .;
120120
*(.bss*)
121121
*(COMMON)
122-
. = ALIGN(4);
122+
. = ALIGN(8);
123123
__bss_end__ = .;
124124
} > RAM
125125

0 commit comments

Comments
 (0)