Browse Source

* 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 years ago
parent
commit
d4b0b6f6e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/ogomf.pas

+ 1 - 1
compiler/ogomf.pas

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