standard.mac: Update section alignment on align call
authorCyrill Gorcunov <gorcunov@gmail.com>
Wed, 21 Apr 2010 19:52:57 +0000 (23:52 +0400)
committerCyrill Gorcunov <gorcunov@gmail.com>
Wed, 21 Apr 2010 19:52:57 +0000 (23:52 +0400)
Achieved via sectalign call. Note that not all output
targets (ie formats) may handle sectalign yet, most
of them just ignore this entity.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
standard.mac

index 32a75a8..727de87 100644 (file)
@@ -102,9 +102,11 @@ __SECT__
 %endmacro
 
 %imacro align 1-2+.nolist nop
+         sectalign %1
          times (((%1) - (($-$$) % (%1))) % (%1)) %2
 %endmacro
 %imacro alignb 1-2+.nolist
+         sectalign %1
          %ifempty %2
                resb (((%1) - (($-$$) % (%1))) % (%1))
          %else