commit | d97cceed61de41c60c99470d8f2988ade4d3718a | [log] [tgz] |
---|---|---|
author | H. Peter Anvin <hpa@zytor.com> | Tue Feb 21 11:31:35 2017 -0800 |
committer | H. Peter Anvin <hpa@zytor.com> | Tue Feb 21 11:31:35 2017 -0800 |
tree | ab796194f3639635372b8585fb136b122304eb5f | |
parent | 8930a8fc151e095788de9242cb163f8d1779b9d4 [diff] [blame] |
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>
diff --git a/asm/parser.c b/asm/parser.c index 48b49c0..5f87c46 100644 --- a/asm/parser.c +++ b/asm/parser.c
@@ -402,7 +402,7 @@ 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;