forked from aniani/nasm
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:
@@ -402,7 +402,7 @@ static int value_to_extop(expr * vect, extop *eop, int32_t myseg)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (eop->wrt == NO_SEG && !eop->relative &&
|
if (!eop->relative &&
|
||||||
vect->type == EXPR_SEGBASE + myseg && vect->value == -1) {
|
vect->type == EXPR_SEGBASE + myseg && vect->value == -1) {
|
||||||
/* Expression of the form: foo - $ */
|
/* Expression of the form: foo - $ */
|
||||||
eop->relative = true;
|
eop->relative = true;
|
||||||
|
Reference in New Issue
Block a user