Skip to content

Commit 4566241

Browse files
author
Deepika
committed
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 boundary
1 parent 1a6048f commit 4566241

File tree

1 file changed

+8
-8
lines changed
  • targets/TARGET_ublox/TARGET_HI2110/device/TOOLCHAIN_GCC_ARM

1 file changed

+8
-8
lines changed

targets/TARGET_ublox/TARGET_HI2110/device/TOOLCHAIN_GCC_ARM/hi2110.ld

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SECTIONS
2424
/* Code and const data */
2525
.text :
2626
{
27-
. = ALIGN(4);
27+
. = ALIGN(8);
2828
*(.text)
2929
*(.text*)
3030

@@ -77,20 +77,20 @@ SECTIONS
7777
*(.data)
7878
*(.data*)
7979

80-
. = ALIGN(4);
80+
. = ALIGN(8);
8181
/* preinit data */
8282
PROVIDE_HIDDEN (__preinit_array_start = .);
8383
KEEP(*(.preinit_array))
8484
PROVIDE_HIDDEN (__preinit_array_end = .);
8585

86-
. = ALIGN(4);
86+
. = ALIGN(8);
8787
/* init data */
8888
PROVIDE_HIDDEN (__init_array_start = .);
8989
KEEP(*(SORT(.init_array.*)))
9090
KEEP(*(.init_array))
9191
PROVIDE_HIDDEN (__init_array_end = .);
9292

93-
. = ALIGN(4);
93+
. = ALIGN(8);
9494
/* finit data */
9595
PROVIDE_HIDDEN (__fini_array_start = .);
9696
KEEP(*(SORT(.fini_array.*)))
@@ -105,20 +105,20 @@ SECTIONS
105105
/* Uninitialised data */
106106
.bss (NOLOAD):
107107
{
108-
. = ALIGN(4);
108+
. = ALIGN(8);
109109
__bss_start__ = .;
110110
*(.bss)
111111
*(.bss*)
112112
*(COMMON)
113-
. = ALIGN(4);
113+
. = ALIGN(8);
114114
__bss_end__ = .;
115115
} > RAM
116116

117117
__bss_size__ = __bss_end__ - __bss_start__;
118118

119119
.resume (NOLOAD):
120120
{
121-
. = ALIGN(4);
121+
. = ALIGN(8);
122122
*(preserve)
123123
} > RAM
124124

@@ -161,7 +161,7 @@ SECTIONS
161161
/* 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 */
162162
.ipc_mailbox (NOLOAD):
163163
{
164-
. = ALIGN(4);
164+
. = ALIGN(8);
165165
__ipc_mailbox_start__ = .;
166166
*(.ipc_mailbox)
167167
*(.ipc_mailbox*)

0 commit comments

Comments
 (0)