mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-15 07:29:34 +02:00
+ prevent certain special omf sections from being smartlinked out
git-svn-id: trunk@31394 -
This commit is contained in:
parent
fe69e3324c
commit
18cdc08c26
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user