浏览代码

* don't write stabs with rva entries on linux

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

+ 1 - 1
compiler/assemble.pas

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