Subj : Re: Binary Format Descriptor To : comp.programming From : Jack Klein Date : Fri Aug 19 2005 01:13 am On Thu, 18 Aug 2005 23:11:54 -0400, "Bill Cunningham" wrote in comp.programming: > Hi can anyone tell me where in a win32/pe file is the entry point, the > BFD, extra padding that is reserved and where other binary info is in a > binary. I suppose DOS files are COFF while linux is ELF. I suppose you would > look at this info in binary with a hex editor wouldn't you? > > Bill First, a group like news:comp.os.ms-windows.programmer.win32 is a much better place to ask about Win32 PE files. Microsoft calls the format COFF, but it's their own customized version of COFF. And there might well be a lot of information available on Microsoft's MSDN site. As for DOS, true MS-DOS that is, there were two binary executable formats, .com files (pure binary) and .exe, which was a version of OMF86. On the other hand, if by "DOS" you mean a Win32 console application, that is Microsoft's version of COFF as well. There is just a flag set by the linker to tell the OS to run it in the console subsystem. And yes, Linux uses a version of ELF. -- Jack Klein Home: http://JK-Technology.Com FAQs for comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html comp.lang.c++ http://www.parashift.com/c++-faq-lite/ alt.comp.lang.learn.c-c++ http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html .