summaryrefslogtreecommitdiff
path: root/core/cortex-m/ec.lds.S
diff options
context:
space:
mode:
Diffstat (limited to 'core/cortex-m/ec.lds.S')
-rw-r--r--core/cortex-m/ec.lds.S16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S
index b6dc1dd7df..b370d1acf0 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -389,6 +389,22 @@ SECTIONS
#define INIT_ROM_LMA ORIGIN(ROM_RESIDENT_VMA)
#endif
+ /*
+ * This SRAM section is not used by common/ or chip/stm32/, but
+ * available if particular boards want to move the vector table
+ * into SRAM for performance or mutability.
+ */
+ .vtable : {
+ /*
+ * Vector table must be at the base of SRAM. The vector
+ * table section contains a RAM copy of the vector table used on
+ * STM chips for relocating the vector table.
+ */
+ . = ALIGN(8);
+ *(.bss.vector_table)
+ . = ALIGN(8);
+ } > IRAM
+
#ifdef CONFIG_PRESERVE_LOGS
.preserve_logs(NOLOAD) : {
. = ALIGN(8);