Add "alignr" standard macro (using resb)

Add an "alignr" standard macro, for use in BSS (nobits) and absolute
segments.
This commit is contained in:
H. Peter Anvin 2008-07-20 09:32:31 -07:00
parent a70547f3ae
commit aad26229b7

View File

@ -71,6 +71,13 @@ __SECT__
%imacro alignb 1-2+.nolist resb 1
times ($$-$) % (%1) %2
%endmacro
%imacro alignr 1-2+.nolist
%ifempty %2
resb ($$-$) % (%1)
%else
times ($$-$) % (%1) %2
%endif
%endmacro
%imacro extern 1-*.nolist
%rep %0