Skip to content

Commit e444249

Browse files
Move vector table into VECTORS region.
1 parent db93b09 commit e444249

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

cortex-r-rt/link.x

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/*
22
Basic 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

67
The 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

1112
INCLUDE memory.x
1213

13-
ENTRY(_vector_table);
14+
ENTRY(_start);
1415
EXTERN(_vector_table);
16+
EXTERN(_start);
1517

1618
SECTIONS {
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

0 commit comments

Comments
 (0)