[Nasm-bugs] [Bug 3392859] New: coff output produces undefined symbols

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Sat May 27 10:10:13 PDT 2023


            Bug ID: 3392859
           Summary: coff output produces undefined symbols
           Product: NASM
           Version: 2.16.xx
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: stsp2 at yandex.ru
                CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
                    hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: From OS distribution

Created attachment 411882
  --> https://bugzilla.nasm.us/attachment.cgi?id=411882&action=edit
test case

Attached is a test-case.
Just run "make".
The output is:

$ make
nasm -f elf -o elffoo foo.S
nm elffoo | grep foo
00000000 T _foo
nasm -f coff -o cofffoo foo.S
i586-pc-msdosdjgpp-nm cofffoo | grep foo
         U _foo

It builds the same source with "_foo"
definition as elf and as coff.
In an elf output `nm` properly shows
"T _foo", but in a coff output we have
"U _foo" and the link then fails.

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