2
0
Эх сурвалжийг харах

internalerror if the section we're about to keep has no exesection assigned

Karoly Balogh 3 жил өмнө
parent
commit
e018264ad9

+ 2 - 0
compiler/ogbase.pas

@@ -3523,6 +3523,8 @@ implementation
           while ObjSectionWorkList.Count>0 do
           while ObjSectionWorkList.Count>0 do
             begin
             begin
               objsec:=TObjSection(ObjSectionWorkList.Last);
               objsec:=TObjSection(ObjSectionWorkList.Last);
+              if not assigned(objsec.exesection) then
+                internalerror(202102001);
               if assigned(exemap) then
               if assigned(exemap) then
                 exemap.Add('Keeping '+objsec.FullName+' '+ToStr(objsec.ObjRelocations.Count)+' references');
                 exemap.Add('Keeping '+objsec.FullName+' '+ToStr(objsec.ObjRelocations.Count)+' references');
               ObjSectionWorkList.Delete(ObjSectionWorkList.Count-1);
               ObjSectionWorkList.Delete(ObjSectionWorkList.Count-1);