소스 검색

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

ccrause 1 년 전
부모
커밋
10ec49d75b
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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}