How to create .dll files with NASM?


Is is possible to assemble Assembly code into .dll files with NASM assembler? I need this because I want to link a .dll file containing Assembly code and a .dll file containing C++ code together, and load that .dll with JNI (Java Native Interface) that will call the C++ functions which are just wrappers for the Assembly functions. Compiling the C++ & Assembly code into two separate .dll modules, calling the "Assembly .dll code" from the "C++ .dll code" is also a possibility.

Best regards, Benjamin.

NASM just creates an object (.o/.obj) file, right? Why not link that into your C++ DLL by specifying it as an additional input on either the linker command line or the project properties?