mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
output/outbin.c: Fix misprinted alignment bound
Due to a misprint in commit
9b66d8e4c3
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
c56d9ad350
commit
6fe313a719
@ -396,7 +396,7 @@ static void bin_cleanup(int debuginfo)
|
||||
nasm_error(ERR_FATAL|ERR_NOFILE, "section %s begins"
|
||||
" before program origin", sections->name);
|
||||
} else if (sections->flags & ALIGN_DEFINED) {
|
||||
sections->start = ALIGN(origin, sections->align - 1);
|
||||
sections->start = ALIGN(origin, sections->align);
|
||||
} else {
|
||||
sections->start = origin;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user