NASM Forum > Example Code

Nasm dont suport COFF 100% ?

(1/1)

nobody:
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).

Thanks,
Cristiano C. N.

Frank Kotler:
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.

Best,
Frank

Navigation

[0] Message Index

Go to full version