浏览代码

* use SegmentName+'||'+ClassName for the name of OMF sections when reading OMF
files, because omf segments are (according to the spec) identified by the
tuple <SegmentName,ClassName,OverlayName> and not just by name (and we ignore
the overlay name)

git-svn-id: trunk@31339 -

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

+ 1 - 1
compiler/ogomf.pas

@@ -1042,7 +1042,7 @@ implementation
             end;
         end;
         secoptions:=[];
-        objsec:=TOmfObjSection(objdata.createsection(SegmentName,SecAlign,secoptions,false));
+        objsec:=TOmfObjSection(objdata.createsection(SegmentName+'||'+SegClassName,SecAlign,secoptions,false));
         objsec.FClassName:=SegClassName;
         objsec.FOverlayName:=OverlayName;
         objsec.FCombination:=SegDefRec.Combination;