mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 17:26:35 +02: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)
|
||||
protected
|
||||
procedure DoRelocationFixup(objsec:TObjSection);override;
|
||||
procedure Order_ObjSectionList(ObjSectionList : TFPObjectList;const aPattern:string);override;
|
||||
function writeData:boolean;override;
|
||||
public
|
||||
constructor create;override;
|
||||
@ -1673,6 +1674,21 @@ implementation
|
||||
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;
|
||||
var
|
||||
Header: TMZExeHeader;
|
||||
|
Loading…
Reference in New Issue
Block a user