mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-04 21:49:37 +01:00
+ order omf sections first by classname, then by name
git-svn-id: trunk@31352 -
This commit is contained in:
parent
eed7e3aa6b
commit
1b9eeee25d
@ -207,6 +207,7 @@ interface
|
|||||||
TMZExeOutput = class(TExeOutput)
|
TMZExeOutput = class(TExeOutput)
|
||||||
protected
|
protected
|
||||||
procedure DoRelocationFixup(objsec:TObjSection);override;
|
procedure DoRelocationFixup(objsec:TObjSection);override;
|
||||||
|
procedure Order_ObjSectionList(ObjSectionList : TFPObjectList;const aPattern:string);override;
|
||||||
function writeData:boolean;override;
|
function writeData:boolean;override;
|
||||||
public
|
public
|
||||||
constructor create;override;
|
constructor create;override;
|
||||||
@ -1673,6 +1674,21 @@ implementation
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function IOmfObjSectionClassNameCompare(Item1, Item2: Pointer): Integer;
|
||||||
|
var
|
||||||
|
I1 : TOmfObjSection absolute Item1;
|
||||||
|
I2 : TOmfObjSection absolute Item2;
|
||||||
|
begin
|
||||||
|
Result:=CompareStr(I1.ClassName,I2.ClassName);
|
||||||
|
if Result=0 then
|
||||||
|
Result:=CompareStr(I1.Name,I2.Name);
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TMZExeOutput.Order_ObjSectionList(ObjSectionList: TFPObjectList; const aPattern: string);
|
||||||
|
begin
|
||||||
|
ObjSectionList.Sort(@IOmfObjSectionClassNameCompare);
|
||||||
|
end;
|
||||||
|
|
||||||
function TMZExeOutput.writeData: boolean;
|
function TMZExeOutput.writeData: boolean;
|
||||||
var
|
var
|
||||||
Header: TMZExeHeader;
|
Header: TMZExeHeader;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user