Pārlūkot izejas kodu

* use use_section_smartlink instead of af_smartlink_sections

git-svn-id: trunk@2336 -
peter 19 gadi atpakaļ
vecāks
revīzija
0bbead8114
3 mainītis faili ar 3 papildinājumiem un 5 dzēšanām
  1. 1 1
      compiler/pmodules.pas
  2. 1 2
      compiler/systems/t_linux.pas
  3. 1 2
      compiler/systems/t_win.pas

+ 1 - 1
compiler/pmodules.pas

@@ -125,7 +125,7 @@ implementation
         current_module.flags:=current_module.flags or uf_static_linked;
 
         if (cs_create_smart in aktmoduleswitches) and
-           not(af_smartlink_sections in target_asm.flags) then
+           not use_smartlink_section then
          begin
            current_module.linkunitstaticlibs.add(current_module.staticlibfilename^,link_smart);
            current_module.flags:=current_module.flags or uf_smart_linked;

+ 1 - 2
compiler/systems/t_linux.pas

@@ -610,8 +610,7 @@ begin
    StaticStr:='-static';
   if (cs_link_strip in aktglobalswitches) then
    StripStr:='-s';
-  if (af_smartlink_sections in target_asm.flags) and
-     (tf_smartlink_sections in target_info.flags) then
+  if use_smartlink_section then
    GCSectionsStr:='--gc-sections';
   If (cs_profile in aktmoduleswitches) or
      ((Info.DynamicLinker<>'') and (not SharedLibFiles.Empty)) then

+ 1 - 2
compiler/systems/t_win.pas

@@ -1054,8 +1054,7 @@ begin
   AsBinStr:=FindUtil(utilsprefix+'as');
   if RelocSection then
    RelocStr:='--base-file base.$$$';
-  if (af_smartlink_sections in target_asm.flags) and
-     (tf_smartlink_sections in target_info.flags) then
+  if use_smartlink_section then
    GCSectionsStr:='--gc-sections';
   if target_info.system in [system_arm_wince,system_i386_wince] then
     begin