From 8f106b616bf0ef62ea94601ddebc33b6c20ae6a2 Mon Sep 17 00:00:00 2001 From: ccrause Date: Sun, 19 May 2024 14:14:03 +0200 Subject: [PATCH] Move .data with fpc specific information to outside normal memory range. --- compiler/systems/t_freertos.pas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/systems/t_freertos.pas b/compiler/systems/t_freertos.pas index 471b5d348f..80fb6ee883 100644 --- a/compiler/systems/t_freertos.pas +++ b/compiler/systems/t_freertos.pas @@ -835,12 +835,16 @@ begin {$ifdef RISCV32} with linkres do begin + Add('MEMORY'); + Add('{'); + Add(' dummy : org = 0x0, len = 0x100'); + Add('}'); Add('SECTIONS'); Add('{'); Add(' .data :'); Add(' {'); Add(' KEEP (*(.fpc .fpc.n_version .fpc.n_links))'); - Add(' }'); + Add(' } > dummy'); Add('}'); end; {$endif RISCV32}