mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 05:00:07 +02:00
* 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:
parent
3380b58695
commit
ec77b0f3ca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user