File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
Basic Cortex-R linker script.
3
3
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'.
5
6
6
7
The stack pointer(s) will be (near) the top of the DATA region by default.
7
8
@@ -10,13 +11,17 @@ Based upon the linker script from https://github.com/rust-embedded/cortex-m
10
11
11
12
INCLUDE memory.x
12
13
13
- ENTRY (_vector_table );
14
+ ENTRY (_start );
14
15
EXTERN (_vector_table );
16
+ EXTERN (_start );
15
17
16
18
SECTIONS {
17
- .text : {
19
+ .vector_table ORIGIN (VECTORS) : {
18
20
/* The vector table must come first */
19
21
*(.vector_table)
22
+ } > VECTORS
23
+
24
+ .text : {
20
25
/* Now the rest of the code */
21
26
*(.text .text*)
22
27
} > CODE
You can’t perform that action at this time.
0 commit comments