浏览代码

* fixed the reading of OMF groups by the internal linker. Previously, it only
worked, when the files had only one group, called 'DGROUP'.

git-svn-id: trunk@39279 -

nickysn 7 年之前
父节点
当前提交
f036e67d8f
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      compiler/ogomf.pas

+ 5 - 0
compiler/ogomf.pas

@@ -2005,6 +2005,11 @@ implementation
         InputFileName:=AReader.FileName;
         objdata:=CObjData.Create(InputFileName);
         result:=false;
+        { the TOmfObjData constructor creates a group 'DGROUP', which is to be
+          used by the code generator, when writing files. When reading object
+          files, however, we need to start with an empty list of groups, so
+          let's clear the group list now. }
+        objdata.GroupsList.Clear;
         LNames.Clear;
         ExtDefs.Clear;
         FRawRecord.ReadFrom(FReader);