diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-04-21 01:22:31 +0400 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-04-21 01:22:31 +0400 |
commit | 1f3db76ee973355489ea3a2296211d796b59a61f (patch) | |
tree | 6c1fb9bfb2996821fa268217ffee0532ef6fbe6b | |
parent | c56a7a2c82508720bf9c758840e0bc356eb55aae (diff) | |
download | nasm-1f3db76ee973355489ea3a2296211d796b59a61f.tar.gz nasm-1f3db76ee973355489ea3a2296211d796b59a61f.tar.bz2 nasm-1f3db76ee973355489ea3a2296211d796b59a61f.zip |
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>
-rw-r--r-- | macros/smartalign.mac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/macros/smartalign.mac b/macros/smartalign.mac index 32e7b3f..410c4d3 100644 --- a/macros/smartalign.mac +++ b/macros/smartalign.mac @@ -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 |