[Nasm-bugs] [Bug 3392655] "mov al, var" does not cause warning when "var" evaluates to 7C10h (in-section offset 10h within org 7C00h section)

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Tue Mar 31 11:02:56 PDT 2020


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

--- Comment #3 from C. Masloch <pushbx at ulukai.org> ---
> Unfortunately, this isn't actually an in-section offset, because it is dependent on the offset of the section.

That is what I meant to convey. "In-section offset" seems to mean something
else for you than what I intended. I meant a non-scalar (to-be-relocated) value
with a certain offset from the section's base. (This offset can be seen in the
relocation entry emitted in the listing file's opcode section.)

> NASM 2.12.02 was buggy and would always warn in this case, but that is not correct as this is the responsibility of the linker.

But note that it did not warn for the cases with the "scalar part of the label"
being less than 100h. So it doesn't "always warn".

> I have checked in your test case as test/binoverflow.bin. I don't think this will be addressed for 2.15.00, but at least it is recorded and should be fixed in the future.

Cool, thanks!

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