Skip to content

Commit

Permalink
rt: fix veneer limit position in linker script
Browse files Browse the repository at this point in the history
add description and hints on linker behavior at symbol `__veneer_limit`

Co-authored-by: Adam Greig <adam@adamgreig.com>
  • Loading branch information
luojia65 and adamgreig committed Apr 28, 2022
1 parent ec7f7c9 commit 1606c88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cortex-m-rt/link.x.in
Expand Up @@ -144,8 +144,12 @@ SECTIONS
__veneer_base = .;
*(.gnu.sgstubs*)
. = ALIGN(32);
__veneer_limit = .;
} > FLASH
/* Place `__veneer_limit` outside the `.gnu.sgstubs` section because veneers are
* always inserted last in the section, which would otherwise be _after_ the `__veneer_limit` symbol.
*/
. = ALIGN(32);
__veneer_limit = .;

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

0 comments on commit 1606c88

Please sign in to comment.