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}