The MASM Forum Archive 2004 to 2012

Specialised Projects => Pelle's Macro Assembler Development => Topic started by: ic2 on February 03, 2007, 06:26:07 AM

Title: RWE
Post by: ic2 on February 03, 2007, 06:26:07 AM
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

Title: Re: RWE
Post by: Vortex on February 03, 2007, 11:56:14 AM
An example :

polink /SUBSYSTEM:WINDOWS /SECTION:.text,RWE Dialog.obj rsrc.res
Title: Re: RWE
Post by: ic2 on February 03, 2007, 04:32:31 PM
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
Title: Re: RWE
Post by: ic2 on February 03, 2007, 06:29:47 PM
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.

Title: Re: RWE
Post by: ic2 on February 03, 2007, 07:11:16 PM
Got it ... Thanks for the lead...

All in One

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