瀏覽代碼

* fixed emitting of RELOC_SEG and RELOC_SEGREL relocations within the same
section in the omf internal obj writer

git-svn-id: trunk@30809 -

nickysn 10 年之前
父節點
當前提交
ced1368221
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/ogomf.pas

+ 2 - 1
compiler/ogomf.pas

@@ -484,7 +484,8 @@ implementation
               begin
                 objreloc:=TOmfRelocation.CreateSection(CurrObjSec.Size,p.objsection,Reloctype);
                 CurrObjSec.ObjRelocations.Add(objreloc);
-                inc(data,symaddr);
+                if not (Reloctype in [RELOC_SEG,RELOC_SEGREL]) then
+                  inc(data,symaddr);
               end;
           end
         else if Reloctype in [RELOC_DGROUP,RELOC_DGROUPREL] then