Skip to content

Commit c43c67d

Browse files
authored
Merge pull request #6 from flit/linker_sections
PrgCode section name
2 parents 4060cc7 + 55dedd8 commit c43c67d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

link.x

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
SECTIONS {
22
. = 0x0;
33

4-
.text : {
4+
/*
5+
* The PrgCode output section name comes from the CMSIS-Pack flash algo
6+
* templates and armlink. It is used here because several tools that work
7+
* with these flash algos expect this section name.
8+
*
9+
* All input sections are combined into PrgCode because RWPI using R9 is not
10+
* currently stable in Rust, thus having separate PrgData sections that the
11+
* debug host might locate at a different offset from PrgCode is not safe.
12+
*/
13+
PrgCode : {
514
KEEP(*(.entry))
615
KEEP(*(.entry.*))
716

0 commit comments

Comments
 (0)