News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

RWE

Started by ic2, February 03, 2007, 06:26:07 AM

Previous topic - Next topic

ic2

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


Vortex

An example :

polink /SUBSYSTEM:WINDOWS /SECTION:.text,RWE Dialog.obj rsrc.res

ic2

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

ic2

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.


ic2

Got it ... Thanks for the lead...

All in One

\POASM\BIN\PoLink.exe /SUBSYSTEM:WINDOWS /merge:.data=.text /SECTION:.text,RWE TabControl.obj > nul