www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - Changing section name

reply BiMode <BiMode_member pathlink.com> writes:
Is it possible?

If so, how do I do to change the section name of the image files?

for example '.text' change to 'CODE'
Oct 03 2003
parent reply "Walter" <walter digitalmars.com> writes:
It isn't easy. You'll need to write a program to read the .exe file, change
the name, and write it back out.

"BiMode" <BiMode_member pathlink.com> wrote in message
news:bljr8v$2k7c$1 digitaldaemon.com...
 Is it possible?

 If so, how do I do to change the section name of the image files?

 for example '.text' change to 'CODE'
Oct 03 2003
parent reply "Matthew Wilson" <matthew stlsoft.org> writes:
Is there some good documentation for the PE format, in respect of the
specifics required for doing what you describe?

"Walter" <walter digitalmars.com> wrote in message
news:blkl5g$nqm$1 digitaldaemon.com...
 It isn't easy. You'll need to write a program to read the .exe file,
change
 the name, and write it back out.

 "BiMode" <BiMode_member pathlink.com> wrote in message
 news:bljr8v$2k7c$1 digitaldaemon.com...
 Is it possible?

 If so, how do I do to change the section name of the image files?

 for example '.text' change to 'CODE'
Oct 03 2003
parent reply "Walter" <walter digitalmars.com> writes:
There's documents on the PE format of varying quality, usually findable with
google.

"Matthew Wilson" <matthew stlsoft.org> wrote in message
news:blkof2$sca$1 digitaldaemon.com...
 Is there some good documentation for the PE format, in respect of the
 specifics required for doing what you describe?

 "Walter" <walter digitalmars.com> wrote in message
 news:blkl5g$nqm$1 digitaldaemon.com...
 It isn't easy. You'll need to write a program to read the .exe file,
change
 the name, and write it back out.

 "BiMode" <BiMode_member pathlink.com> wrote in message
 news:bljr8v$2k7c$1 digitaldaemon.com...
 Is it possible?

 If so, how do I do to change the section name of the image files?

 for example '.text' change to 'CODE'
Oct 03 2003
parent "Matthew Wilson" <matthew stlsoft.org> writes:
nw

"Walter" <walter digitalmars.com> wrote in message
news:blkqqp$vf9$1 digitaldaemon.com...
 There's documents on the PE format of varying quality, usually findable
with
 google.

 "Matthew Wilson" <matthew stlsoft.org> wrote in message
 news:blkof2$sca$1 digitaldaemon.com...
 Is there some good documentation for the PE format, in respect of the
 specifics required for doing what you describe?

 "Walter" <walter digitalmars.com> wrote in message
 news:blkl5g$nqm$1 digitaldaemon.com...
 It isn't easy. You'll need to write a program to read the .exe file,
change
 the name, and write it back out.

 "BiMode" <BiMode_member pathlink.com> wrote in message
 news:bljr8v$2k7c$1 digitaldaemon.com...
 Is it possible?

 If so, how do I do to change the section name of the image files?

 for example '.text' change to 'CODE'
Oct 03 2003