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
Yes, but the linker has a hand in things before it becomes an EXE. ;)
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.
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.