From 72f7d43843c54f4191748e83222354f26f49d833 Mon Sep 17 00:00:00 2001 From: David Boles Date: Wed, 19 Jan 2022 03:10:24 -0800 Subject: [PATCH] Make the address of the vector table configurable. --- link.x.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/link.x.in b/link.x.in index 92004b7f..870c34d2 100644 --- a/link.x.in +++ b/link.x.in @@ -63,8 +63,11 @@ SECTIONS PROVIDE(_stack_start = ORIGIN(RAM) + LENGTH(RAM)); /* ## Sections in FLASH */ + + PROVIDE(_svector_table = ORIGIN(FLASH)); + /* ### Vector table */ - .vector_table ORIGIN(FLASH) : + .vector_table _svector_table : { /* Initial Stack Pointer (SP) value */ LONG(_stack_start);