소스 검색

* 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));
         if assigned(ps) then
          begin
+           writesymbol(ps);
            { current address }
            curraddr:=StabsSec.mempos+StabsSec.datasize;
            if DLLSource and RelocSection then

+ 4 - 1
compiler/ogelf.pas

@@ -443,7 +443,10 @@ implementation
         stab.nvalue:=offset;
         stabssec.write(stab,sizeof(stab));
         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;