浏览代码

* always clear segments and groups in the beginning of TOmfObjOutput.writeData, because the same objects is used for creating multiple object files

git-svn-id: trunk@30516 -
nickysn 10 年之前
父节点
当前提交
8a831f4c7f
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      compiler/ogomf.pas

+ 4 - 0
compiler/ogomf.pas

@@ -589,6 +589,10 @@ implementation
 
         LNames.Clear;
         LNames.Add('');  { insert an empty string, which has index 1 }
+        FSegments.Clear;
+        FSegments.Add('',nil);
+        FGroups.Clear;
+        FGroups.Add('',nil);
 
         for i:=0 to Data.ObjSectionList.Count-1 do
           with TOmfObjSection(Data.ObjSectionList[I]) do