There is a .code section in exe. How can I create a new executable section?
Posted on 2001-09-21 03:47:34 by vkim


.386p
.model flat,c
option dotname

.dotdot@ segment para public 'DATA'
db "hey, this is in the .dotdot@ section"
.dotdot@ ends

.code
start:
ret

end start


... masm is pretty limited in the names you can use, though. I assume
the 'DATA' is the storage class, which will affect the section flags.
A little interesting thing... Try defining three sections...
sec$1, sec$2, sec$3. Experiment with the declaration order in the
asm file, and look what output section is generated... nifty, huh? :)
Posted on 2001-09-21 04:27:21 by f0dder
Vladimir,

This is the basic reference material for PE files,

http://www.hutch.ukshells.co.uk/download/winf10.zip
http://www.hutch.ukshells.co.uk/download/pe1.zip

Both are useful if you need to work in this area.

Regards,

hutch@pbq.com.au
Posted on 2001-09-21 04:43:37 by hutch--
f0dder and hutch--,
Thank You very much!

Is it a poetry? :)
Posted on 2001-09-21 05:38:44 by vkim