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:
Cyrill Gorcunov 2010-04-21 01:22:31 +04:00
parent c56a7a2c82
commit 1f3db76ee9

View file

@ -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