Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

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 581fc95 commit 4d1e402
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 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 4d1e402

Please sign in to comment.