[Nasm-bugs] [Bug 3392361] warning: absolute address can not be RIP-relative

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Wed Feb 1 01:07:10 PST 2017


Andy Polyakov <appro at openssl.org> changed:

           What    |Removed                     |Added
                 CC|                            |appro at openssl.org

--- Comment #6 from Andy Polyakov <appro at openssl.org> ---

[On behalf of OpenSSL users] I'd love to see this bug addressed in upcoming
2.12.03. The warning was introduced in 2.12.02 and is issued during 1st pass,
when segment for forward referenced label is not initialized yet. It is
possible to get rid of warning by bumping ERR_PASS1 to ERR_PASS2 in
corresponding nasm_error call in asm/assemble.c. But this was found simply by
trial, so I'm not sure if this is "the right thing to do[tm]". More
specifically I didn't try to figure out if the line following nasm_error and
masking IP_REL should be made conditional [on pass number] or not. But judging
from generated binary code just masking warning is sufficient.

On related note. One can actually wonder if it's appropriate to catch this
condition at *any* nasm pass. Or more specifically one can wonder if it's
rather job for the *linker* to tell user that ip-relative addressing is not an
option in particular cases and let him/her go back and fix the reference in


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