diff --git a/boards/arm/rp23xx/pimoroni-pico-2-plus/scripts/memmap_copy_to_ram.ld b/boards/arm/rp23xx/pimoroni-pico-2-plus/scripts/memmap_copy_to_ram.ld index ad2a57e4d6b..8be73dbc2b3 100644 --- a/boards/arm/rp23xx/pimoroni-pico-2-plus/scripts/memmap_copy_to_ram.ld +++ b/boards/arm/rp23xx/pimoroni-pico-2-plus/scripts/memmap_copy_to_ram.ld @@ -256,11 +256,10 @@ SECTIONS __end__ = .; end = __end__; KEEP(*(.heap*)) - /* historically on GCC sbrk was growing past __HeapLimit to __StackLimit, however - to be more compatible, we now set __HeapLimit explicitly to where the end of the heap is */ - . = ORIGIN(RAM) + LENGTH(RAM); - __HeapLimit = .; } > RAM + /* historically on GCC sbrk was growing past __HeapLimit to __StackLimit, however + to be more compatible, we now set __HeapLimit explicitly to where the end of the heap is */ + __HeapLimit = ORIGIN(RAM) + LENGTH(RAM); /* Start and end symbols must be word-aligned */ .scratch_x : { diff --git a/boards/arm/rp23xx/pimoroni-pico-2-plus/scripts/memmap_default.ld b/boards/arm/rp23xx/pimoroni-pico-2-plus/scripts/memmap_default.ld index a6ae6625cc1..b59a2ce94a2 100644 --- a/boards/arm/rp23xx/pimoroni-pico-2-plus/scripts/memmap_default.ld +++ b/boards/arm/rp23xx/pimoroni-pico-2-plus/scripts/memmap_default.ld @@ -269,11 +269,10 @@ SECTIONS __end__ = .; end = __end__; KEEP(*(.heap*)) - /* historically on GCC sbrk was growing past __HeapLimit to __StackLimit, however - to be more compatible, we now set __HeapLimit explicitly to where the end of the heap is */ - . = ORIGIN(RAM) + LENGTH(RAM); - __HeapLimit = .; } > RAM + /* historically on GCC sbrk was growing past __HeapLimit to __StackLimit, however + to be more compatible, we now set __HeapLimit explicitly to where the end of the heap is */ + __HeapLimit = ORIGIN(RAM) + LENGTH(RAM); /* Start and end symbols must be word-aligned */ .scratch_x : { diff --git a/boards/arm/rp23xx/pimoroni-pico-2-plus/scripts/memmap_no_flash.ld b/boards/arm/rp23xx/pimoroni-pico-2-plus/scripts/memmap_no_flash.ld index b4d3602cce3..81dea5b79d6 100644 --- a/boards/arm/rp23xx/pimoroni-pico-2-plus/scripts/memmap_no_flash.ld +++ b/boards/arm/rp23xx/pimoroni-pico-2-plus/scripts/memmap_no_flash.ld @@ -215,11 +215,10 @@ SECTIONS __end__ = .; end = __end__; KEEP(*(.heap*)) - /* historically on GCC sbrk was growing past __HeapLimit to __StackLimit, however - to be more compatible, we now set __HeapLimit explicitly to where the end of the heap is */ - . = ORIGIN(RAM) + LENGTH(RAM); - __HeapLimit = .; } > RAM + /* historically on GCC sbrk was growing past __HeapLimit to __StackLimit, however + to be more compatible, we now set __HeapLimit explicitly to where the end of the heap is */ + __HeapLimit = ORIGIN(RAM) + LENGTH(RAM); /* Start and end symbols must be word-aligned */ .scratch_x : {