+ prevent certain special omf sections from being smartlinked out

git-svn-id: trunk@31394 -
This commit is contained in:
nickysn 2015-08-24 18:10:50 +00:00
parent fe69e3324c
commit 18cdc08c26

View File

@ -1189,6 +1189,11 @@ implementation
exit;
end;
objsec.Size:=SegDefRec.SegmentLength;
if (SegClassName='HEAP') or
(SegClassName='STACK') or (SegDefRec.Combination=scStack) or
(SegClassName='BEGDATA') or
(SegmentName='FPC') then
objsec.SecOptions:=objsec.SecOptions+[oso_keep];
SegDefRec.Free;
Result:=True;
end;