mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-27 11:37:19 +01:00
+ added a getter for the NewExeSegmentFlags property, that returns the
nesfHasRelocationData flag according to whether the Relocations list is non-empty git-svn-id: trunk@42746 -
This commit is contained in:
parent
36b7842eb6
commit
94e22f1262
@ -725,6 +725,7 @@ interface
|
|||||||
FSizeInFile: QWord;
|
FSizeInFile: QWord;
|
||||||
FRelocations: TNewExeRelocationList;
|
FRelocations: TNewExeRelocationList;
|
||||||
function GetMinAllocSize: QWord;
|
function GetMinAllocSize: QWord;
|
||||||
|
function GetNewExeSegmentFlags: TNewExeSegmentFlags;
|
||||||
public
|
public
|
||||||
constructor create(AList:TFPHashObjectList;const AName:string);override;
|
constructor create(AList:TFPHashObjectList;const AName:string);override;
|
||||||
destructor destroy;override;
|
destructor destroy;override;
|
||||||
@ -740,7 +741,7 @@ interface
|
|||||||
property DataPosSectors: Word read FDataPosSectors write FDataPosSectors;
|
property DataPosSectors: Word read FDataPosSectors write FDataPosSectors;
|
||||||
property MinAllocSize: QWord read GetMinAllocSize;
|
property MinAllocSize: QWord read GetMinAllocSize;
|
||||||
property SizeInFile: QWord read FSizeInFile write FSizeInFile;
|
property SizeInFile: QWord read FSizeInFile write FSizeInFile;
|
||||||
property NewExeSegmentFlags: TNewExeSegmentFlags read FNewExeSegmentFlags write FNewExeSegmentFlags;
|
property NewExeSegmentFlags: TNewExeSegmentFlags read GetNewExeSegmentFlags write FNewExeSegmentFlags;
|
||||||
property Relocations: TNewExeRelocationList read FRelocations;
|
property Relocations: TNewExeRelocationList read FRelocations;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -4361,6 +4362,15 @@ cleanup:
|
|||||||
Result:=Size-StackSize;
|
Result:=Size-StackSize;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TNewExeSection.GetNewExeSegmentFlags: TNewExeSegmentFlags;
|
||||||
|
begin
|
||||||
|
Result:=FNewExeSegmentFlags;
|
||||||
|
if Relocations.Count>0 then
|
||||||
|
Include(Result,nesfHasRelocationData)
|
||||||
|
else
|
||||||
|
Exclude(Result,nesfHasRelocationData);
|
||||||
|
end;
|
||||||
|
|
||||||
constructor TNewExeSection.create(AList:TFPHashObjectList;const AName:string);
|
constructor TNewExeSection.create(AList:TFPHashObjectList;const AName:string);
|
||||||
begin
|
begin
|
||||||
inherited create(AList, AName);
|
inherited create(AList, AName);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user