summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
authorCharles Crayne <chuck@thor.crayne.org>2008-11-03 18:21:24 -0800
committerCharles Crayne <chuck@thor.crayne.org>2008-11-03 18:21:24 -0800
commite2dea103db4838a996e71f7c3904b57ae0c4fe86 (patch)
treefdbc39fbb38698101f4bf9a857732485dc921e9b /nasm.c
parente263d0454471baba0e0c5c616856e8fad505c62b (diff)
downloadnasm-e2dea103db4838a996e71f7c3904b57ae0c4fe86.tar.gz
nasm-e2dea103db4838a996e71f7c3904b57ae0c4fe86.tar.bz2
nasm-e2dea103db4838a996e71f7c3904b57ae0c4fe86.zip
Prevent erroneous extra "final" pass
Specifically check for end of final pass.
Diffstat (limited to 'nasm.c')
-rw-r--r--nasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nasm.c b/nasm.c
index ab369b8..56109e1 100644
--- a/nasm.c
+++ b/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;