Would someone have a batch file that demonstrate how to set RWE for Poasm?
This is how i use it so far. text & data are merged. I can't seem to get the last line in place or know what else is needed to make it work.
Thanks in advance
\POASM\BIN\PoLink.exe /SUBSYSTEM:WINDOWS
/merge:.data=.text TabControl.obj > nul
REM /section:.text,RWE
An example :
polink /SUBSYSTEM:WINDOWS /SECTION:.text,RWE Dialog.obj rsrc.res
It works!!! Now i get the second MessageBox when using SMC.asm in my program but it crash on return. The 2nd procedure was overwritten i just have to fix the way im using the code.
Thanks a lot Vortex
I got my file completely working but when i did a Icz dump I now get a text and data section. My goal was to have only one section, a .text section as before.
This is the way i added the example:
\POASM\BIN\PoLink.exe /SUBSYSTEM:WINDOWS /merge:.data=.text ,RWE TabControl.obj > nul
\POASM\BIN\PoLink.exe /SUBSYSTEM:WINDOWS /section:.text,RWE TabControl.obj > nul
I can remove the two > nul and it still work but give me two sections again.
The only error i get is : File not Found: RWE.obj
but the file do runs well.
Got it ... Thanks for the lead...
All in One
\POASM\BIN\PoLink.exe /SUBSYSTEM:WINDOWS /merge:.data=.text /SECTION:.text,RWE TabControl.obj > nul