mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 20:49:23 +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
|
private
|
||||||
FEarlySize: QWord;
|
FEarlySize: QWord;
|
||||||
FExeMetaSec: TNewExeMetaSection;
|
FExeMetaSec: TNewExeMetaSection;
|
||||||
|
FMemBasePos: Word;
|
||||||
public
|
public
|
||||||
procedure AddObjSection(objsec:TObjSection;ignoreprops:boolean=false);override;
|
procedure AddObjSection(objsec:TObjSection;ignoreprops:boolean=false);override;
|
||||||
function CanAddObjSection(objsec:TObjSection;ExeSectionLimit:QWord):boolean;
|
function CanAddObjSection(objsec:TObjSection;ExeSectionLimit:QWord):boolean;
|
||||||
property EarlySize: QWord read FEarlySize write FEarlySize;
|
property EarlySize: QWord read FEarlySize write FEarlySize;
|
||||||
property ExeMetaSec: TNewExeMetaSection read FExeMetaSec write FExeMetaSec;
|
property ExeMetaSec: TNewExeMetaSection read FExeMetaSec write FExeMetaSec;
|
||||||
|
property MemBasePos: Word read FMemBasePos write FMemBasePos;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TNewExeOutput }
|
{ TNewExeOutput }
|
||||||
@ -3641,11 +3643,14 @@ cleanup:
|
|||||||
|
|
||||||
procedure TNewExeOutput.AddNewExeSection;
|
procedure TNewExeOutput.AddNewExeSection;
|
||||||
var
|
var
|
||||||
|
SegNr: Integer;
|
||||||
SecName: string;
|
SecName: string;
|
||||||
begin
|
begin
|
||||||
WriteStr(SecName,'Segment',ExeSectionList.Count+1,'_',NewExeMetaSection2String[CurrExeMetaSec]);
|
SegNr:=ExeSectionList.Count+1;
|
||||||
|
WriteStr(SecName,'Segment',SegNr,'_',NewExeMetaSection2String[CurrExeMetaSec]);
|
||||||
inherited Order_ExeSection(SecName);
|
inherited Order_ExeSection(SecName);
|
||||||
TNewExeSection(CurrExeSec).ExeMetaSec:=CurrExeMetaSec;
|
TNewExeSection(CurrExeSec).ExeMetaSec:=CurrExeMetaSec;
|
||||||
|
TNewExeSection(CurrExeSec).MemBasePos:=SegNr;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TNewExeOutput.WriteNewExe: boolean;
|
function TNewExeOutput.WriteNewExe: boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user