浏览代码

* don't generate RVA reloc in stabs if there is no symbol

git-svn-id: trunk@5990 -
peter 18 年之前
父节点
当前提交
8bf63f4f69
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      compiler/assemble.pas

+ 3 - 1
compiler/assemble.pas

@@ -869,7 +869,9 @@ Implementation
             oldsec:=ObjData.CurrObjSec;
             ObjData.SetSection(ObjData.StabsSec);
             ObjData.Writebytes(stab,sizeof(TObjStabEntry)-4);
-            if (target_info.system in system_windows+system_wince) and DLLSource and RelocSection then
+            if assigned(relocsym) and
+               (target_info.system in system_windows+system_wince) and
+               (DLLSource and RelocSection) then
               reltype:=RELOC_RVA
             else
               reltype:=RELOC_ABSOLUTE;