foo.asm contents:
END
Note: Use the x86 native tools command prompt which comes with Visual Studio for running the following commands:
ml /c /coff foo.asm
link /merge:.rdata=.text /merge:.data=.text /align:16 /subsystem:windows /dll /noentry foo.obj