Browse Source

+ avr-embedded: keep fpc.* sections, should resolve #39825

florian 3 years ago
parent
commit
776c39dc0a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/systems/t_embed.pas

+ 1 - 0
compiler/systems/t_embed.pas

@@ -1120,6 +1120,7 @@ begin
       Add('    *(.rodata)  /* We need to include .rodata here if gcc is used */');
       Add('    *(.rodata)  /* We need to include .rodata here if gcc is used */');
       Add('    *(.rodata*) /* with -fdata-sections.  */');
       Add('    *(.rodata*) /* with -fdata-sections.  */');
       Add('    *(.gnu.linkonce.d*)');
       Add('    *(.gnu.linkonce.d*)');
+      add('    KEEP (*(.fpc .fpc.n_version .fpc.n_links))');
       Add('    . = ALIGN(2);');
       Add('    . = ALIGN(2);');
       Add('     _edata = . ;');
       Add('     _edata = . ;');
       Add('     PROVIDE (__data_end = .) ;');
       Add('     PROVIDE (__data_end = .) ;');