I'd like to use the instruction lea rax, [rip + 0x1020304]
with NASM but it seems like it doesn't allow that use of rip
.
GAS (GNU Assembler) does allow this syntax for both numbers and symbols (How do RIP-relative variable references like "[RIP + _a]" in x86-64 GAS Intel-syntax work?). How can I achieve this with NASM?