Bläddra i källkod

* the COMDAT record contains the section number which is off-by-one to the section index

Sven/Sarah Barth 1 år sedan
förälder
incheckning
f5beaa80d8
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      compiler/ogcoff.pas

+ 1 - 1
compiler/ogcoff.pas

@@ -2598,7 +2598,7 @@ const pemagic : array[0..3] of byte = (
 
                       if (secrec.assoc<>0) and not assigned(objsym.objsection.AssociativeSection) then
                         begin
-                          objsym.objsection.AssociativeSection:=GetSection(secrec.assoc);
+                          objsym.objsection.AssociativeSection:=GetSection(secrec.assoc-1);
                           if not assigned(objsym.objsection.AssociativeSection) then
                             Message1(link_e_comdat_associative_section_not_found,objsym.objsection.Name);
                         end;