mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 21:19:31 +02:00
+ also read the omf segment size and set objsec.Size
git-svn-id: trunk@30971 -
This commit is contained in:
parent
1cae939615
commit
096743d74d
@ -976,6 +976,13 @@ implementation
|
||||
objsec.FOverlayName:=OverlayName;
|
||||
objsec.FCombination:=SegDefRec.Combination;
|
||||
objsec.FUse:=SegDefRec.Use;
|
||||
if SegDefRec.SegmentLength>High(objsec.Size) then
|
||||
begin
|
||||
InputError('Segment too large');
|
||||
SegDefRec.Free;
|
||||
exit;
|
||||
end;
|
||||
objsec.Size:=SegDefRec.SegmentLength;
|
||||
SegDefRec.Free;
|
||||
Result:=True;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user