summaryrefslogtreecommitdiff
path: root/assemble.c
diff options
context:
space:
mode:
authorVictor van den Elzen <victor.vde@gmail.com>2009-02-25 17:32:00 +0100
committerVictor van den Elzen <victor.vde@gmail.com>2009-02-25 17:32:00 +0100
commit154e5920a1ee2c816e502b70fe0c4ab3ea6ab7c1 (patch)
tree7c20d04a4f5b12241c58b54fd03d0d0ea3a030e0 /assemble.c
parentbabebffb71f42e1d55095afea96f41e15acc28b1 (diff)
downloadnasm-154e5920a1ee2c816e502b70fe0c4ab3ea6ab7c1.tar.gz
nasm-154e5920a1ee2c816e502b70fe0c4ab3ea6ab7c1.tar.bz2
nasm-154e5920a1ee2c816e502b70fe0c4ab3ea6ab7c1.zip
Do not confuse segmentless adresses and unknown forward references
Also be optimistic with immediate forward references.
Diffstat (limited to 'assemble.c')
-rw-r--r--assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/assemble.c b/assemble.c
index 6fcb748..d4e7f25 100644
--- a/assemble.c
+++ b/assemble.c
@@ -263,7 +263,7 @@ static bool jmp_match(int32_t segment, int64_t offset, int bits,
isize = calcsize(segment, offset, bits, ins, code);
- if (passn == 1 && ins->oprs[0].segment == NO_SEG)
+ if (ins->oprs[0].opflags & OPFLAG_UNKNOWN)
/* Be optimistic in pass 1 */
return true;