Browse Source

* fixed relocation fixup for x86_64

git-svn-id: trunk@3107 -
florian 19 years ago
parent
commit
79b2432369
1 changed files with 3 additions and 0 deletions
  1. 3 0
      compiler/ogcoff.pas

+ 3 - 0
compiler/ogcoff.pas

@@ -773,6 +773,7 @@ const win32stub : array[0..131] of byte=(
                     dec(address,TCoffObjSection(relocsec).orgmempos);
                     dec(address,TCoffObjSection(relocsec).orgmempos);
                   inc(address,relocval);
                   inc(address,relocval);
                 end;
                 end;
+              RELOC_ABSOLUTE32,
               RELOC_ABSOLUTE :
               RELOC_ABSOLUTE :
                 begin
                 begin
                   if oso_common in relocsec.secoptions then
                   if oso_common in relocsec.secoptions then
@@ -786,6 +787,8 @@ const win32stub : array[0..131] of byte=(
                   inc(address,relocval);
                   inc(address,relocval);
                   inc(address,relocsec.objdata.imagebase);
                   inc(address,relocsec.objdata.imagebase);
                 end;
                 end;
+              else
+                internalerror(200604014);
             end;
             end;
             data.Seek(r.dataoffset);
             data.Seek(r.dataoffset);
             data.Write(address,4);
             data.Write(address,4);