瀏覽代碼

* 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 -
nickysn 7 年之前
父節點
當前提交
8af56ad6c8
共有 1 個文件被更改,包括 2 次插入6 次删除
  1. 2 6
      compiler/ogomf.pas

+ 2 - 6
compiler/ogomf.pas

@@ -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 }