coff: Fix section alignment computation
commit7c8c258cddb85e3a3d53a5ff373a747796f1d327
authorCyrill Gorcunov <gorcunov@gmail.com>
Thu, 22 Apr 2010 11:05:19 +0000 (22 15:05 +0400)
committerCyrill Gorcunov <gorcunov@gmail.com>
Thu, 22 Apr 2010 15:05:50 +0000 (22 19:05 +0400)
tree7bb2501400928fd2eba5355a6f6ee570b166c1cf
parent42017a611590d0ca764ab017aad0abdf0e6cf633
coff: Fix section alignment computation

Section alignment is broken due to not being
direct "align -> power of two set" mapping but
rather including second addition operation.

Fix it by introducing coff_sectalign_flags helper.
This also allow us to use this helper for getting
rid of open coded computation as well.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
output/outcoff.c