Przeglądaj źródła

Linux: don't discard CFI when using it for exceptions

Jonas Maebe 2 lat temu
rodzic
commit
6d3e3d06e2
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      compiler/systems/t_linux.pas

+ 2 - 1
compiler/systems/t_linux.pas

@@ -720,7 +720,8 @@ begin
       add('  {');
       add('    KEEP (*(.fpc .fpc.n_version .fpc.n_links))');
       add('  }');
-      if not ((cs_debuginfo in current_settings.moduleswitches)) then
+      if not(cs_debuginfo in current_settings.moduleswitches) and
+         not(tf_use_psabieh in target_info.flags) then
         add('  /DISCARD/ : {*(.debug_frame)}');
       add('  .threadvar : { *(.threadvar .threadvar.* .gnu.linkonce.tv.*) }');
       add('}');