[Nasm-bugs] [Bug 3392394] New: Spurious warning with explicit use of REL
no-reply at bugzilla-nasm.gorcunov.org
no-reply at bugzilla-nasm.gorcunov.org
Mon Apr 3 01:14:20 PDT 2017
https://bugzilla.nasm.us/show_bug.cgi?id=3392394
Bug ID: 3392394
Summary: Spurious warning with explicit use of REL
Product: NASM
Version: 2.12.xx
Hardware: All
OS: All
Status: OPEN
Severity: annoyance
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: zenith432 at users.sourceforge.net
CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us
With nasm 2.12.02.
===== xx1.nasm
bits 64
section .text
lea rax, [table]
section .data
default rel
table: dd 0
=====
nasm -f elf64 xx1.nasm (assembles ok, no warning)
===== xx2.nasm
bits 64
section .text
lea rax, [rel table]
section .data
default rel
table: dd 0
=====
nasm -f elf64 xx2.nasm
xx2.nasm:4: warning: absolute address can not be RIP-relative
Code generated is identical.
This happens with -f win64 and -f macho64 too.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
More information about the Nasm-bugs
mailing list