Selaa lähdekoodia

* set the size of the string table to a multiple of 4 bytes instead of to
a multiple of the data alignment (like the assemblers do)

git-svn-id: trunk@29998 -

Jonas Maebe 10 vuotta sitten
vanhempi
commit
5302024e25
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      packages/fcl-res/src/machosubwriter.inc

+ 1 - 1
packages/fcl-res/src/machosubwriter.inc

@@ -257,7 +257,7 @@ begin
   symcommand.symoff:=fSymbolTable.StartOfs;
   symcommand.symoff:=fSymbolTable.StartOfs;
   symcommand.nsyms:=fSymbolTable.Count;
   symcommand.nsyms:=fSymbolTable.Count;
   symcommand.stroff:=fMachOStringTable.StartOfs;
   symcommand.stroff:=fMachOStringTable.StartOfs;
-  symcommand.strsize:=NextAligned(fDataAlignment,fMachOStringTable.Size);
+  symcommand.strsize:=NextAligned(4,fMachOStringTable.Size);
 
 
   if fOppositeEndianess then
   if fOppositeEndianess then
   begin
   begin