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

[RFC] Keep .stack_sizes #118

Merged
merged 1 commit into from
Sep 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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