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

* Darwin targets that don't support link order sym files can't smart link
vectorized sections

git-svn-id: trunk@48765 -

Jonas Maebe 4 лет назад
Родитель
Сommit
6beb28316e
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      compiler/aasmcnst.pas

+ 3 - 1
compiler/aasmcnst.pas

@@ -1584,7 +1584,9 @@ implementation
 
    class function ttai_typedconstbuilder.is_smartlink_vectorized_dead_strip: boolean;
      begin
-       result:=tf_smartlink_sections in target_info.flags;
+       result:=(tf_smartlink_sections in target_info.flags) and
+               (not(target_info.system in systems_darwin) or
+                (tf_supports_symbolorderfile in target_info.flags));
      end;