From 2fec327652c16c0352473f9a36152493630a7f57 Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Sat, 14 Jun 2025 14:48:59 -0400 Subject: Update cortex-m-rt to 0.7.5 There's an unreleased commit upstream to support stack painting with custom memory layouts, like ours. I eagerly defined the _stack_end symbol. Tested on hardware. --- src/host/imxrt-link.x | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/host/imxrt-link.x') diff --git a/src/host/imxrt-link.x b/src/host/imxrt-link.x index 7fcd76c..2a5deff 100644 --- a/src/host/imxrt-link.x +++ b/src/host/imxrt-link.x @@ -42,8 +42,9 @@ SECTIONS __estack = .; . += ALIGN(__stack_size, 8); __sstack = .; - /* Symbol expected by cortex-m-rt */ + /* Symbols expected by cortex-m-rt */ _stack_start = __sstack; + _stack_end = __estack; } > REGION_STACK .vector_table : ALIGN(1024) @@ -118,6 +119,9 @@ SECTIONS } > REGION_DATA AT> REGION_LOAD_DATA __sidata = LOADADDR(.data); + _ram_start = __sdata; + _ram_end = __edata; + .bss (NOLOAD) : ALIGN(4) { . = ALIGN(4); -- cgit v1.2.3