mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-31 18:20:22 +08:00
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:
parent
83ffe8ca24
commit
900b2229e4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user