smartalign.mac: align macro should align a segment as well
authorCyrill Gorcunov <gorcunov@gmail.com>
Tue, 20 Apr 2010 21:22:31 +0000 (01:22 +0400)
committerCyrill Gorcunov <gorcunov@gmail.com>
Tue, 20 Apr 2010 21:22:31 +0000 (01:22 +0400)
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>
macros/smartalign.mac

index 32e7b3f2a3d8bbec32b4971681c9e5cced342bbe..410c4d3aa3fb8438772ee280b8dae10b53085724 100644 (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