Is there some way in masm source, or is there a switch for masm or LINK, that will set the attributes of a PE section? Maybe by using the SEGMENT directive instead of .model? Thx.
Larry, you can set the sections with the following syntax in LINK, /section:.text,RWE This sets the .text section as Read Write Execute. ou can also merge sections with the syntax, /MERGE:from=to Regards, firstname.lastname@example.org
there is a little utilitie in http://protools.cjb.net called "PESam" that let you modify section`s atributtes. http://www.programmerstools.com/files/utilities/pesam.zip I dunno if exits any switch in MASM/TASM ... Regards,
Thanks guys. I was using one of my own gadgets: www.hammick.com/hcs/sectattr.exe which just goes in the build file. Convenient, but can't merge sections.