I've been reading up on PE and I have a question. Are the sections in masm in any direct relation to the sections in the PE? They seem to correlate somewhat by the names. .data and .code for instance. The docs I've been reading are by a C++ programmer and he didn't say anything about that
Posted on 2002-02-07 16:14:59 by rdaneel
Yes, but the linker has a hand in things before it becomes an EXE. ;)
Posted on 2002-02-07 16:30:22 by bitRAKE
linker does a lot of stuff. It gathers all sections with the same name
from multiple objs/libs, and make sure they are continuous in memory.
Sorting rules apply if sections have names like ".data$1" (ie, $ followed
by sort-value). ".text" is the normally used code section name,
where your ".code" sections from masm will go.

Furthermore, the linker constructs import and resource stuff.
Posted on 2002-02-08 13:33:39 by f0dder