mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
assemble: weaken the test for "absolute address can not be RIP-relative"
The test for "absolute address can not be RIP-relative" is too strict and causes false positive failures. Fixes: https://github.com/netwide-assembler/nasm/issues/145 Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
parent
a8a1dc2b0c
commit
3d96ea651a
1 changed files with 1 additions and 2 deletions
|
|
@ -3462,8 +3462,7 @@ static int process_ea(operand *input, int rfield, opflags_t rflags,
|
|||
input->type |= IP_REL;
|
||||
}
|
||||
if ((input->type & IP_REL) == IP_REL) {
|
||||
if (input->segment == NO_SEG ||
|
||||
(input->opflags & OPFLAG_RELATIVE)) {
|
||||
if (!pass_first() && absolute_op(input)) {
|
||||
nasm_warn(WARN_EA_ABSOLUTE,
|
||||
"absolute address can not be RIP-relative");
|
||||
input->type &= ~IP_REL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue