Browse Source

* rva relocation bug fixed

pierre 25 years ago
parent
commit
24353efcb7
1 changed files with 6 additions and 3 deletions
  1. 6 3
      compiler/og386cff.pas

+ 6 - 3
compiler/og386cff.pas

@@ -546,8 +546,8 @@ unit og386cff;
            else
            else
              begin
              begin
                writesymbol(p);
                writesymbol(p);
-               if (p^.section<>sec_none) and (relative=relative_false) then
-                 sects[currsec]^.addsectionreloc(sects[currsec]^.len,p^.section,relative_false)
+               if (p^.section<>sec_none) and (relative<>relative_true) then
+                 sects[currsec]^.addsectionreloc(sects[currsec]^.len,p^.section,relative)
                else
                else
                  sects[currsec]^.addsymreloc(sects[currsec]^.len,p,relative);
                  sects[currsec]^.addsymreloc(sects[currsec]^.len,p,relative);
                if not win32 then {seems wrong to me (PM) }
                if not win32 then {seems wrong to me (PM) }
@@ -985,7 +985,10 @@ unit og386cff;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.20  2000-03-09 14:29:47  pierre
+  Revision 1.21  2000-03-10 09:15:54  pierre
+   * rva relocation bug fixed
+
+  Revision 1.20  2000/03/09 14:29:47  pierre
    * fix for the stab section size changes with smartlinking
    * fix for the stab section size changes with smartlinking
 
 
   Revision 1.19  2000/02/09 13:22:54  peter
   Revision 1.19  2000/02/09 13:22:54  peter