After the header fields for a segmented executable file, EXEHDR displays the segment table. All values appear in hexadecimal except for the segment index number. An example of this table is:
no. type address file mem flags
1 CODE 00000400 00efb 00efb
2 DATA 00001400 00031 0007d
3 DATA 00001600 0003c 00040 SHARED
The following list describes each heading in the segment table:
no.
Segment index number (in decimal), starting with 1.
type
Identification of the segment as a code or data segment.
address
A seek offset for the segment within the file.
file
Size in bytes of the segment in the file on disk.
mem
Size in bytes of the segment in memory. If mem is greater than file, the operating system pads the extra space with zero values at load time.
flags
Segment attributes. If the /V option is not used, only nondefault attributes are listed. Attributes that are meaningful only to Windows are displayed in lowercase and in parentheses.