Author Topic: Nasm dont suport COFF 100% ?  (Read 14134 times)


  • Guest
Nasm dont suport COFF 100% ?
« on: February 20, 2005, 06:20:36 PM »
Well, im coding a criptosystem in nasm, but i want to use the object in MinGW, so im decide to make some changes and use COFF...
BUT, now its not working fine, the dll is not being compiled right (no exports) and MinGW cannot locate the export in object files.

*PS: The code is right, cause it is working when its compiled as OMF object (but MinGW dont recognize OMF's).

Cristiano C. N.

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Nasm dont suport COFF 100% ?
« Reply #1 on: February 20, 2005, 11:23:06 PM »
Why assume the problem is with Nasm? I don't recall version numbers, but prior to about November of 2003, the version of ld with the MinGW binutils wasn't "right" - that is, MinGW did it the way MS *documented* they did coff, not the way they actually *did* it. This resulted in a lot of bug reports about Nasm... AFAIK, they do it "right" (that is, "wrong", but the way MS does it) in recent versions.

You want "-f win32" from Nasm - Nasm's "-f coff" is for djgpp.

Outside of those two possible issues, I don't know what could be wrong. If you figure it out, let us know.