projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83ffe8c
)
standard.mac: Update section alignment on align call
author
Cyrill Gorcunov
<gorcunov@gmail.com>
Wed, 21 Apr 2010 19:52:57 +0000
(23:52 +0400)
committer
Cyrill 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
patch
|
blob
|
history
diff --git
a/standard.mac
b/standard.mac
index
32a75a8
..
727de87
100644
(file)
--- 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