浏览代码

* writesymbol for relocations in stabs

git-svn-id: trunk@1357 -
peter 20 年之前
父节点
当前提交
a01774c73d
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 0
      compiler/ogcoff.pas
  2. 4 1
      compiler/ogelf.pas

+ 1 - 0
compiler/ogcoff.pas

@@ -682,6 +682,7 @@ const go32v2stub : array[0..2047] of byte=(
         StabsSec.write(stab,sizeof(stab));
         StabsSec.write(stab,sizeof(stab));
         if assigned(ps) then
         if assigned(ps) then
          begin
          begin
+           writesymbol(ps);
            { current address }
            { current address }
            curraddr:=StabsSec.mempos+StabsSec.datasize;
            curraddr:=StabsSec.mempos+StabsSec.datasize;
            if DLLSource and RelocSection then
            if DLLSource and RelocSection then

+ 4 - 1
compiler/ogelf.pas

@@ -443,7 +443,10 @@ implementation
         stab.nvalue:=offset;
         stab.nvalue:=offset;
         stabssec.write(stab,sizeof(stab));
         stabssec.write(stab,sizeof(stab));
         if assigned(ps) then
         if assigned(ps) then
-          stabssec.addsymreloc(stabssec.datasize-4,ps,RELOC_ABSOLUTE);
+          begin
+            writesymbol(ps);
+            stabssec.addsymreloc(stabssec.datasize-4,ps,RELOC_ABSOLUTE);
+          end;
       end;
       end;