Explorar o código

Fixed missing section for Raspberry Pi Pico

Michael Ring hai 1 ano
pai
achega
7c3ab69c50
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      compiler/systems/t_embed.pas

+ 2 - 0
compiler/systems/t_embed.pas

@@ -867,6 +867,8 @@ begin
       Add('    {');
       Add('    {');
       Add('    _data = .;');
       Add('    _data = .;');
       Add('    *(.data .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('    KEEP (*(.fpc .fpc.n_version .fpc.n_links))');
       Add('    _edata = .;');
       Add('    _edata = .;');
       if embedded_controllers[current_settings.controllertype].flashsize<>0 then
       if embedded_controllers[current_settings.controllertype].flashsize<>0 then