if there are any MASM coders, please help me out!
i'm trying to achieve smaller executable sizes using /ALIGN:4
but all i get is an application error (0xc0000018), when the executable is run.
this example runs fine under winXP, but not under windows 7.
you'd say i have to use at lease 512 align, but i've seen handcrafted PE stubs with no align at all, yet working.
so how do i manage this? do i have to write the PE header myself, or is there any other option to remove the align?
compiled with that commandline:
.model flat, stdcall
option casemap :none
invoke ExitProcess, 0
\masm32\bin\ml /c /coff /nologo test.asm
\masm32\bin\Link /SUBSYSTEM:WINDOWS /MERGE:.rdata=.text /ALIGN:4 test.obj > nul