Преглед на файлове

* idata must be aligned on 4 bytes to prevent a corrupt
idata2 section where the entries are always 20 bytes

git-svn-id: trunk@8725 -

peter преди 18 години
родител
ревизия
c767df348f
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      compiler/ogbase.pas

+ 6 - 0
compiler/ogbase.pas

@@ -879,6 +879,12 @@ implementation
           sec_bss,
           sec_data:
             result:=16;
+          { For idata (at least idata2) it must be 4 bytes, because
+            an entry is always (also in win64) 20 bytes and aligning
+            on 8 bytes will insert 4 bytes between the entries resulting
+            in a corrupt idata section }
+          sec_idata2,sec_idata4,sec_idata5,sec_idata6,sec_idata7:
+            result:=4;
           else
             result:=sizeof(aint);
         end;