Skip to content

Commit

Permalink
keep .stack_sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric committed Sep 17, 2018
1 parent 27501f8 commit 036fcc8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cortex-m-rt/link.x.in
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ SECTIONS
/* Place the heap right after `.bss` */
__sheap = ADDR(.bss) + SIZEOF(.bss);

/* Stack usage metadata emitted by LLVM */
.stack_sizes (INFO) :
{
KEEP(*(.stack_sizes));
}

/* ## .got */
/* Dynamic relocations are unsupported. This section is only used to detect relocatable code in
the input files and raise an error if relocatable code is found */
Expand Down

0 comments on commit 036fcc8

Please sign in to comment.