mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 01:29:29 +02:00
+ add a segment number (MemBasePos) to TNewExeSection
git-svn-id: trunk@42563 -
This commit is contained in:
parent
30e7406be3
commit
8e436e6335
@ -498,11 +498,13 @@ interface
|
||||
private
|
||||
FEarlySize: QWord;
|
||||
FExeMetaSec: TNewExeMetaSection;
|
||||
FMemBasePos: Word;
|
||||
public
|
||||
procedure AddObjSection(objsec:TObjSection;ignoreprops:boolean=false);override;
|
||||
function CanAddObjSection(objsec:TObjSection;ExeSectionLimit:QWord):boolean;
|
||||
property EarlySize: QWord read FEarlySize write FEarlySize;
|
||||
property ExeMetaSec: TNewExeMetaSection read FExeMetaSec write FExeMetaSec;
|
||||
property MemBasePos: Word read FMemBasePos write FMemBasePos;
|
||||
end;
|
||||
|
||||
{ TNewExeOutput }
|
||||
@ -3641,11 +3643,14 @@ cleanup:
|
||||
|
||||
procedure TNewExeOutput.AddNewExeSection;
|
||||
var
|
||||
SegNr: Integer;
|
||||
SecName: string;
|
||||
begin
|
||||
WriteStr(SecName,'Segment',ExeSectionList.Count+1,'_',NewExeMetaSection2String[CurrExeMetaSec]);
|
||||
SegNr:=ExeSectionList.Count+1;
|
||||
WriteStr(SecName,'Segment',SegNr,'_',NewExeMetaSection2String[CurrExeMetaSec]);
|
||||
inherited Order_ExeSection(SecName);
|
||||
TNewExeSection(CurrExeSec).ExeMetaSec:=CurrExeMetaSec;
|
||||
TNewExeSection(CurrExeSec).MemBasePos:=SegNr;
|
||||
end;
|
||||
|
||||
function TNewExeOutput.WriteNewExe: boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user