* fixed writing the alignment for datablocks on darwin/aix based on

the last section's alignment (lastalignment is log2(alignment) there,
    and writesection again takes log2() of its parameter)

git-svn-id: trunk@20964 -
This commit is contained in:
Jonas Maebe 2012-04-21 20:17:53 +00:00
parent 3380b58695
commit ec77b0f3ca

View File

@ -753,7 +753,7 @@ implementation
asmwrite(tai_datablock(hp).sym.name);
asmwriteln(', '+tostr(tai_datablock(hp).size)+','+tostr(last_align));
if not(LastSecType in [sec_data,sec_none]) then
writesection(LastSecType,'',secorder_default,last_align);
writesection(LastSecType,'',secorder_default,1 shl last_align);
end
else
begin
@ -775,7 +775,7 @@ implementation
asmwrite(#9'.space ');
asmwriteln(tostr(tai_datablock(hp).size));
if not(LastSecType in [sec_data,sec_none]) then
writesection(LastSecType,'',secorder_default,last_align);
writesection(LastSecType,'',secorder_default,1 shl last_align);
end
else
begin