[comp.lang.c] Finding the Data Segment from an .EXE

cs00chs@unccvax.uncc.edu (charles spell) (10/08/90)

I am trying to find out where (offset) in a .EXE the start of the
(initialized) data segment is from a compiled TurboC program. I can get
the Code Segment from the word at 16h in the .EXE header, but am not sure
of an easy way to find the data segment that follows the code...

any ideas?

Thanx in advance.

-- 
 .--------------------------.  ...  |On the border of your mind lies a place
 |uunet!mcnc!unccvax!cs00chs|  (")  |where dreams and reality are one...I will 
 `--------------------------'-w-U-w-|take you there, for I am the subject...
 \%\%\%\%\%\%\%\%\%\%\%\%\%\%\%\%\%\|the subject of your imagination. -Aldo Nova