Skip to content

Commit 036fcc8

Browse files
committed
keep .stack_sizes
1 parent 27501f8 commit 036fcc8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cortex-m-rt/link.x.in

+6
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ SECTIONS
129129
/* Place the heap right after `.bss` */
130130
__sheap = ADDR(.bss) + SIZEOF(.bss);
131131

132+
/* Stack usage metadata emitted by LLVM */
133+
.stack_sizes (INFO) :
134+
{
135+
KEEP(*(.stack_sizes));
136+
}
137+
132138
/* ## .got */
133139
/* Dynamic relocations are unsupported. This section is only used to detect relocatable code in
134140
the input files and raise an error if relocatable code is found */

0 commit comments

Comments
 (0)