[Nasm-bugs] [Bug 3392823] New: OMF object output format silently ignores vstart= for sections
noreply-nasm at dev.nasm.us
noreply-nasm at dev.nasm.us
Wed Nov 23 13:18:00 PST 2022
https://bugzilla.nasm.us/show_bug.cgi?id=3392823
Bug ID: 3392823
Summary: OMF object output format silently ignores vstart= for
sections
Product: NASM
Version: 2.16 (development)
Hardware: All
OS: All
Status: OPEN
Severity: normal
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: pushbx at ulukai.org
CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: Built from git using configure
I recently ported some sources from TASM to NASM, allowing to assemble either
with -f bin format or -f obj. I was surprised to find that -f obj accepted to
specify sections with vstart= but that had no effect on the actual output. I
understand that this is something the linker should implement rather than the
assembler. I do think NASM should warn or error out on this however.
Reference: https://codeberg.org/boeckmann/ranish/issues/3#issuecomment-683832
In the NASM source, the OMF output format simply ignores unknown section
attributes:
https://github.com/netwide-assembler/nasm/blob/9939a2c00ec752100acbfaac01757f271f7d6040/output/outobj.c#L1512
--
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