* fixed silly (caused by copy/paste) bug when writing elf section contents in the dwarf debug binary, produced by TMZExeOutput.writeDebugElf

git-svn-id: trunk@39227 -
This commit is contained in:
nickysn 2018-06-14 16:29:25 +00:00
parent 11cf2a6996
commit 8af56ad6c8

View File

@ -2734,12 +2734,8 @@ implementation
for i:=0 to debugsections[J].ObjSectionList.Count-1 do
begin
ObjSec:=TOmfObjSection(debugsections[J].ObjSectionList[i]);
if ObjSec.MemPos<Header.LoadableImageSize then
begin
FWriter.WriteZeros(max(0,ObjSec.MemPos-FWriter.Size+debugsections[J].DataPos));
if assigned(ObjSec.Data) then
FWriter.writearray(ObjSec.Data);
end;
if assigned(ObjSec.Data) then
FWriter.writearray(ObjSec.Data);
end;
end;
{ write .shstrtab section data }