Browse Source

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

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

+ 5 - 1
compiler/systems/t_freertos.pas

@@ -857,12 +857,16 @@ begin
 {$ifdef XTENSA}
   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 XTENSA}