Browse Source

Using global assmelber labels for debug line is not required for smartlinked sections

git-svn-id: trunk@22346 -
pierre 13 years ago
parent
commit
971cc159f9
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/aasmdata.pas

+ 4 - 1
compiler/aasmdata.pas

@@ -484,7 +484,10 @@ implementation
     procedure TAsmData.getlabel(out l : TAsmLabel;alt:TAsmLabeltype);
     procedure TAsmData.getlabel(out l : TAsmLabel;alt:TAsmLabeltype);
       begin
       begin
         if (target_info.system in (systems_linux + systems_bsd)) and
         if (target_info.system in (systems_linux + systems_bsd)) and
-           (cs_create_smart in current_settings.moduleswitches) and
+           { the next condition was
+             (cs_create_smart in current_settings.moduleswitches) and
+             but if we create_smartlink_sections, this is useless }
+           (create_smartlink_library) and
            (alt = alt_dbgline) then
            (alt = alt_dbgline) then
           l:=TAsmLabel.createglobal(AsmSymbolDict,name,FNextLabelNr[alt],alt)
           l:=TAsmLabel.createglobal(AsmSymbolDict,name,FNextLabelNr[alt],alt)
         else
         else