mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 23:21:57 +02:00
* 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:
parent
11cf2a6996
commit
8af56ad6c8
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user