Просмотр исходного кода

Fixed missing section for Raspberry Pi Pico

Michael Ring 1 год назад
Родитель
Сommit
7c3ab69c50
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      compiler/systems/t_embed.pas

+ 2 - 0
compiler/systems/t_embed.pas

@@ -867,6 +867,8 @@ begin
       Add('    {');
       Add('    _data = .;');
       Add('    *(.data .data.*)');
+      // Special Section for the Raspberry Pico, needed for linking to spi
+      Add('    *(.time_critical*)');
       Add('    KEEP (*(.fpc .fpc.n_version .fpc.n_links))');
       Add('    _edata = .;');
       if embedded_controllers[current_settings.controllertype].flashsize<>0 then