Skip to content

Commit

Permalink
link.x.in: move sgstubs after data
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Apr 7, 2021
1 parent bf99836 commit 2b0baa6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions cortex-m-rt/link.x.in
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,6 @@ SECTIONS
__erodata = .;
} > FLASH

/* ### .gnu.sgstubs
This section contains the TrustZone-M veneers put there by the Arm GNU linker. */
/* Security Attribution Unit blocks must be 32 bytes aligned. */
/* Note that this does cost up to 28 bytes of FLASH. */
.gnu.sgstubs : ALIGN(32)
{
. = ALIGN(32);
__veneer_base = .;
*(.gnu.sgstubs*)
. = ALIGN(32);
__veneer_limit = .;
} > FLASH

/* ## Sections in RAM */
/* ### .data */
.data : ALIGN(4)
Expand All @@ -145,6 +132,19 @@ SECTIONS
/* LMA of .data */
__sidata = LOADADDR(.data);

/* ### .gnu.sgstubs
This section contains the TrustZone-M veneers put there by the Arm GNU linker. */
/* Security Attribution Unit blocks must be 32 bytes aligned. */
/* Note that this pads the FLASH usage to 32 byte alignment. */
.gnu.sgstubs : ALIGN(32)
{
. = ALIGN(32);
__veneer_base = .;
*(.gnu.sgstubs*)
. = ALIGN(32);
__veneer_limit = .;
} > FLASH

/* ### .bss */
.bss (NOLOAD) : ALIGN(4)
{
Expand Down

0 comments on commit 2b0baa6

Please sign in to comment.