We can have a WRT for a relative reference

It isn't illegal to have WRT for a relative reference.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2017-02-21 11:31:35 -08:00
parent 8930a8fc15
commit d97cceed61

View File

@ -402,7 +402,7 @@ static int value_to_extop(expr * vect, extop *eop, int32_t myseg)
continue;
}
if (eop->wrt == NO_SEG && !eop->relative &&
if (!eop->relative &&
vect->type == EXPR_SEGBASE + myseg && vect->value == -1) {
/* Expression of the form: foo - $ */
eop->relative = true;