How do you compile and link a 64 bit Windows assembly program in Linux
I already know to run
nasm -f win64 generic_assembly.asm -o generic_output But after that I can't just run
ld generic_output -o generic_executable.exe and I have tried using GoLink.exe with wine but I am still skeptical as to whether it is actually working
Maybe I could use Mingw-w64 but I have no clue on how that would work
Any help would be appreciated I am mostly just looking for a linker that I can run from linux but otherwise a linker for Windows would also be appreciated.
x86_64-w64-mingw32-ld, the GCC cross compiler would be calledx86_64-w64-mingw32-gccetc. That is the naming convention on my Debian Jessie system.x86_64-w64-mingw32-gccto link.objfiles from nasm into executables, in case there's anything non-obviousldarg that's needed. (use-staticand/or-nostdlibas appropriate).