This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Non-zero VMA's w/DWARF-2?


> Date: Wed, 15 Jan 2003 18:24:27 -0600 (CST)
> From: Brian Ford <ford@vss.fsi.com>
> 
> DJGPP does not have the constraints of a PE/COFF object file format.  As I
> understand it, they have a wrapper that loads COFF, so they can do as they
> please.

That's true: a DJGPP program has a short 2KB stub loader prepended to
it.  To the OS, that stub is the program; the COFF image is just data
which the OS knows nothing about.  When the stub is invoked, it reads
the COFF information from the rest of the .exe file, sets up memory as
required by the sections in the image, then jumps to the start point
of the COFF image.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]