standard.mac: Update section alignment on align call

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>
This commit is contained in:
Cyrill Gorcunov 2010-04-21 23:52:57 +04:00
parent 83ffe8ca24
commit 900b2229e4

View 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