aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt
diff options
context:
space:
mode:
Diffstat (limited to 'cortex-m-rt')
-rw-r--r--cortex-m-rt/link.x.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/cortex-m-rt/link.x.in b/cortex-m-rt/link.x.in
index f4f4959..f1a921d 100644
--- a/cortex-m-rt/link.x.in
+++ b/cortex-m-rt/link.x.in
@@ -110,6 +110,18 @@ SECTIONS
. = ALIGN(4); /* Ensure __erodata is aligned if something unaligned is inserted after .rodata */
__erodata = .;
+ /* ### .gnu.sgstubs
+ This section contains the TrustZone-M veneers put there by the Arm GNU linker. */
+ . = ALIGN(32); /* Security Attribution Unit blocks must be 32 bytes aligned. */
+ __veneer_base = ALIGN(4);
+ .gnu.sgstubs : ALIGN(4)
+ {
+ *(.gnu.sgstubs*)
+ . = ALIGN(4); /* 4-byte align the end (VMA) of this section */
+ } > FLASH
+ . = ALIGN(4); /* Ensure __veneer_limit is aligned if something unaligned is inserted after .gnu.sgstubs */
+ __veneer_limit = .;
+
/* ## Sections in RAM */
/* ### .data */
.data : ALIGN(4)