Xref: utzoo comp.sys.ibm.pc.misc:2408 comp.binaries.ibm.pc.d:9774 comp.lang.c:32695 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!rutgers!mcnc!unccvax!cs00chs From: cs00chs@unccvax.uncc.edu (charles spell) Newsgroups: comp.sys.ibm.pc.misc,comp.binaries.ibm.pc.d,comp.lang.c Subject: Finding the Data Segment from an .EXE Keywords: How? Message-ID: <2819@unccvax.uncc.edu> Date: 7 Oct 90 23:43:44 GMT Followup-To: poster Organization: University of NC at Charlotte Lines: 15 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