Skip to content

Commit 2b0baa6

Browse files
committed
link.x.in: move sgstubs after data
1 parent bf99836 commit 2b0baa6

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

cortex-m-rt/link.x.in

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -114,19 +114,6 @@ SECTIONS
114114
__erodata = .;
115115
} > FLASH
116116

117-
/* ### .gnu.sgstubs
118-
This section contains the TrustZone-M veneers put there by the Arm GNU linker. */
119-
/* Security Attribution Unit blocks must be 32 bytes aligned. */
120-
/* Note that this does cost up to 28 bytes of FLASH. */
121-
.gnu.sgstubs : ALIGN(32)
122-
{
123-
. = ALIGN(32);
124-
__veneer_base = .;
125-
*(.gnu.sgstubs*)
126-
. = ALIGN(32);
127-
__veneer_limit = .;
128-
} > FLASH
129-
130117
/* ## Sections in RAM */
131118
/* ### .data */
132119
.data : ALIGN(4)
@@ -145,6 +132,19 @@ SECTIONS
145132
/* LMA of .data */
146133
__sidata = LOADADDR(.data);
147134

135+
/* ### .gnu.sgstubs
136+
This section contains the TrustZone-M veneers put there by the Arm GNU linker. */
137+
/* Security Attribution Unit blocks must be 32 bytes aligned. */
138+
/* Note that this pads the FLASH usage to 32 byte alignment. */
139+
.gnu.sgstubs : ALIGN(32)
140+
{
141+
. = ALIGN(32);
142+
__veneer_base = .;
143+
*(.gnu.sgstubs*)
144+
. = ALIGN(32);
145+
__veneer_limit = .;
146+
} > FLASH
147+
148148
/* ### .bss */
149149
.bss (NOLOAD) : ALIGN(4)
150150
{

0 commit comments

Comments
 (0)