mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
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:
parent
8930a8fc15
commit
d97cceed61
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user