+ fill the program entry point address in the NewExe header

git-svn-id: trunk@42571 -
This commit is contained in:
nickysn 2019-08-03 00:59:02 +00:00
parent 901dde5fa5
commit dbafff24fe

View File

@ -3666,6 +3666,8 @@ cleanup:
function TNewExeOutput.WriteNewExe: boolean;
begin
Header.InitialIP:=EntrySym.address;
Header.InitialCS:=TNewExeSection(EntrySym.objsection.ExeSection).MemBasePos;
Header.WriteTo(FWriter);
{ todo: write the rest of the file as well }
Result:=True;