From d97cceed61de41c60c99470d8f2988ade4d3718a Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 21 Feb 2017 11:31:35 -0800 Subject: [PATCH] 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 --- asm/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asm/parser.c b/asm/parser.c index 48b49c02..5f87c463 100644 --- a/asm/parser.c +++ b/asm/parser.c @@ -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;