mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:49:33 +02:00
* override MemPos_Start for the NewExe exe output and perform the whole MemPos
stage inside of it, because the linker script contains only dummy section names and thus none of the sections get their MemPos set, while using the default implementation git-svn-id: trunk@42562 -
This commit is contained in:
parent
c32ddf42eb
commit
30e7406be3
@ -528,6 +528,7 @@ interface
|
||||
procedure Order_ExeSection(const aname:string);override;
|
||||
procedure Order_EndExeSection;override;
|
||||
procedure Order_ObjSection(const aname:string);override;
|
||||
procedure MemPos_Start;override;
|
||||
procedure GenerateLibraryImports(ImportLibraryList:TFPHashObjectList);override;
|
||||
function writeData:boolean;override;
|
||||
end;
|
||||
@ -3760,6 +3761,15 @@ cleanup:
|
||||
TmpObjSectionList.Free;
|
||||
end;
|
||||
|
||||
procedure TNewExeOutput.MemPos_Start;
|
||||
var
|
||||
i: Integer;
|
||||
begin
|
||||
inherited MemPos_Start;
|
||||
for i:=0 to ExeSectionList.Count-1 do
|
||||
MemPos_ExeSection(TExeSection(ExeSectionList[i]));
|
||||
end;
|
||||
|
||||
procedure TNewExeOutput.GenerateLibraryImports(ImportLibraryList: TFPHashObjectList);
|
||||
var
|
||||
i,j: longint;
|
||||
|
Loading…
Reference in New Issue
Block a user