[Nasm-bugs] [Bug 3392608] New: multi-section bin format: two sections following the same section, one implicitly, gives wrong error message

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Mon Sep 9 13:26:04 PDT 2019


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

            Bug ID: 3392608
           Summary: multi-section bin format: two sections following the
                    same section, one implicitly, gives wrong error
                    message
           Product: NASM
           Version: 2.15 (development)
          Hardware: All
                OS: All
            Status: OPEN
          Severity: minor
          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 think what is happening here is that upon the first definition of the section
FREE it is assumed to follow after DATA2. Then the definition of DATA3, which
explicitly follows DATA2, fails because only one of them may follow DATA2.

The section names listed in the error message don't seem correct for this
condition however.


$ cat test.asm
section FAT
start_fat:
section DATA1 follows=FAT
start_data1:
section DATA2 follows=DATA1
start_data2:
section FREE
start_free:
section DATA3 follows=DATA2
start_data3:
section FREE follows=DATA3
$ nasm -v
NASM version 2.12.01
$ nasm test.asm
nasm: fatal: sections DATA3 and DATA3 can't both follow section DATA2
$ newnasm -v
NASM version 2.15rc0 compiled on Aug 21 2019
$ newnasm test.asm
test.asm: fatal: sections DATA3 and DATA3 can't both follow section DATA2
$

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