mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 14:19:31 +02:00
+ fill the program entry point address in the NewExe header
git-svn-id: trunk@42571 -
This commit is contained in:
parent
901dde5fa5
commit
dbafff24fe
@ -3666,6 +3666,8 @@ cleanup:
|
|||||||
|
|
||||||
function TNewExeOutput.WriteNewExe: boolean;
|
function TNewExeOutput.WriteNewExe: boolean;
|
||||||
begin
|
begin
|
||||||
|
Header.InitialIP:=EntrySym.address;
|
||||||
|
Header.InitialCS:=TNewExeSection(EntrySym.objsection.ExeSection).MemBasePos;
|
||||||
Header.WriteTo(FWriter);
|
Header.WriteTo(FWriter);
|
||||||
{ todo: write the rest of the file as well }
|
{ todo: write the rest of the file as well }
|
||||||
Result:=True;
|
Result:=True;
|
||||||
|
Loading…
Reference in New Issue
Block a user