summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-04-21 23:52:57 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2010-04-21 23:52:57 +0400
commit900b2229e4a6aef158b2382205c0ac04ae7121d4 (patch)
tree4e20ff5cada3b2ff25623a631779ae547b4227fa
parent83ffe8ca240b96e26af689235030dc3bdd16bb20 (diff)
downloadnasm-900b2229e4a6aef158b2382205c0ac04ae7121d4.tar.gz
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>
-rw-r--r--standard.mac2
1 files changed, 2 insertions, 0 deletions
diff --git a/standard.mac b/standard.mac
index 32a75a8c..727de87f 100644
--- a/standard.mac
+++ b/standard.mac
@@ -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