File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 11/*
22Basic Cortex-R linker script.
33
4- You must supply a file called `memory.x` which defines the memory regions 'CODE' and 'DATA'.
4+ You must supply a file called `memory.x` which defines the memory regions
5+ 'VECTORS', 'CODE' and 'DATA'.
56
67The stack pointer(s) will be (near) the top of the DATA region by default.
78
@@ -10,13 +11,17 @@ Based upon the linker script from https://github.com/rust-embedded/cortex-m
1011
1112INCLUDE memory.x
1213
13- ENTRY (_vector_table );
14+ ENTRY (_start );
1415EXTERN (_vector_table);
16+ EXTERN (_start);
1517
1618SECTIONS {
17- .text : {
19+ .vector_table ORIGIN ( VECTORS) : {
1820 /* The vector table must come first */
1921 *(.vector_table )
22+ } > VECTORS
23+
24+ .text : {
2025 /* Now the rest of the code */
2126 *(.text .text *)
2227 } > CODE
You can’t perform that action at this time.
0 commit comments