Преглед на файлове

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

Jonas Maebe преди 2 години
родител
ревизия
6d3e3d06e2
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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('}');