mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
Prevent erroneous extra "final" pass
Specifically check for end of final pass.
This commit is contained in:
parent
e263d04544
commit
e2dea103db
2
nasm.c
2
nasm.c
@ -1719,7 +1719,7 @@ static void assemble_file(char *fname, StrList **depend_ptr)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (passn > 1 && !global_offset_changed)
|
||||
if ((passn > 1 && !global_offset_changed) || pass0 == 2)
|
||||
pass0++;
|
||||
else if (global_offset_changed && global_offset_changed < prev_offset_changed) {
|
||||
prev_offset_changed = global_offset_changed;
|
||||
|
Loading…
Reference in New Issue
Block a user