Skip to content

Commit bca7583

Browse files
committed
cortex-m-rt: assert in linker script that stack_start is 8-byte aligned.
1 parent ac8d42b commit bca7583

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cortex-m-rt/link.x.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ BUG(cortex-m-rt): .bss is not 4-byte aligned");
217217
ASSERT(__sheap % 4 == 0, "
218218
BUG(cortex-m-rt): start of .heap is not 4-byte aligned");
219219

220+
ASSERT(_stack_start % 8 == 0, "
221+
ERROR(cortex-m-rt): stack start address is not 8-byte aligned");
222+
220223
/* # Position checks */
221224

222225
/* ## .vector_table */

0 commit comments

Comments
 (0)