We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.vector_table
1 parent f2fc7d3 commit 9943ef6Copy full SHA for 9943ef6
cortex-m-rt/link.x.in
@@ -261,6 +261,11 @@ Possible solutions, from most likely to less likely:
261
may be enabling it)
262
- Supply the interrupt handlers yourself. Check the documentation for details.");
263
264
+ASSERT((ADDR(.vector_table) % MAX(128, (1 << (LOG2CEIL(SIZEOF(.vector_table)))))) == 0, "
265
+ERROR(cortex-m-rt): The interrupt vectors are misaligned. It needs to be aligned to the largest of:
266
+- 128 byte
267
+- Next power of two from the size of the vector table");
268
+
269
/* ## .text */
270
ASSERT(ADDR(.vector_table) + SIZEOF(.vector_table) <= _stext, "
271
ERROR(cortex-m-rt): The .text section can't be placed inside the .vector_table section
0 commit comments