[Nasm-bugs] [Bug 3392797] Invalid addressing mode with "rel" simply disregards rel

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Tue Apr 19 11:18:31 PDT 2022


--- Comment #6 from Liam Bowen <liambowen at gmail.com> ---
Mr. Anvin:

I did take it into account. There are two parts of that struct that contain
information about rel. One is eaflags, and the other is type. type appears to
be set based on the operand as well as the global REL setting:

if (!(input->eaflags & EAF_ABS) &&         ((input->eaflags & EAF_REL) ||
globalrel))             input->type |= IP_REL;

I check eaflags because it seems operand specific. I verified with this test

default rel                                                                    
       section .text                                                           
                      lea rbx, [values + rdi * 8]                              
                     section .data                                             
                                    values dq 1, 2

This does not produce a warning.

You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.

More information about the Nasm-bugs mailing list