nasm.c: min 2 optimization passes, don't re-run pass 1
commit12810fac9294cd205f3d7a4a1ce9fab480e42f89
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Thu, 28 Jun 2018 03:17:33 +0000 (27 20:17 -0700)
committerH. Peter Anvin (Intel) <hpa@zytor.com>
Thu, 28 Jun 2018 03:17:33 +0000 (27 20:17 -0700)
treeacd040d8045eddd7edf0344e791af5c643a55cab
parent58a275c3e917c083b4b165c53cce47dc830492b7
nasm.c: min 2 optimization passes, don't re-run pass 1

We may not even have the most basic stabilization done unless we run
at least two optimization passes, e.g. in the case of subsections.
However, we cannot run more than one stabilization pass (pass0 == 1);
for one thing we'll call ofmt->symdef() multiple times on the same
symbol, which is not allowed.  If we haven't achieved stability by the
time we decide to run a stabilization pass, plod on and hope for the
best.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
asm/nasm.c