smartalign.mac: align macro should align a segment as well
This change may have backward compatibility issue but most probably the sane program never used sections with base address less then instruction alignment. Note that alignment may only increase which means if a section is aligned on 2^5 the align 2^4 will not affect the section. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
c56a7a2c82
commit
1f3db76ee9
1 changed files with 1 additions and 0 deletions
|
@ -161,6 +161,7 @@ USE: smartalign
|
|||
|
||||
%unimacro align 1-2+.nolist
|
||||
%imacro align 1-2+.nolist
|
||||
segalign %1 ; align a segment as well
|
||||
%ifnempty %2
|
||||
times (((%1) - (($-$$) % (%1))) % (%1)) %2
|
||||
%else
|
||||
|
|
Loading…
Reference in a new issue