Browse Source

Move .data with fpc specific information to outside normal memory range.

ccrause 1 year ago
parent
commit
8f106b616b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      compiler/systems/t_freertos.pas

+ 5 - 1
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}