Prevent erroneous extra "final" pass

Specifically check for end of final pass.
This commit is contained in:
Charles Crayne 2008-11-03 18:21:24 -08:00
parent e263d04544
commit e2dea103db

2
nasm.c
View File

@ -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;