[Nasm-bugs] [Bug 3392898] Short jump label address bug if the label is (far) in another section/segment

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Fri Oct 13 16:57:42 PDT 2023


https://bugzilla.nasm.us/show_bug.cgi?id=3392898

H. Peter Anvin <hpa at zytor.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|OPEN                        |CONFIRMED

--- Comment #3 from H. Peter Anvin <hpa at zytor.com> ---
72(FF) means it will get fixed up at link time (the binary format is just a
linker built into NASM itself!)

However, if I'm reading your code correctly the branch is located at address
0x19ea and the target at 0x2cff; this is obviously impossible as a short jump,
and after relocation it becomes 77 13, which is a truncated version of the
proper offset (0x1313). The real problem here is that there isn't a warning on
an unreachable offset encountered during linking.

-- 
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