Mail Archives: djgpp/2000/06/27/12:36:25
On Mon, 26 Jun 2000, Ben Chong wrote:
> After looking at the a.out file, I noticed that there is a huge go32
> stub. Now, this is what I DONT'T want.
How huge is ``huge''? The DJGPP stub is only 2KB, and it shouldn't be
in a.out, only in a.exe.
What command did you use to link the program? If you invoked ld.exe
directly, use the --output=coff-go32 command-line option to prevent
the linker from prepending the stub.
> The system will already be in
> some sort of 32-bit mode, so all I would like is that the first
> instruction be in location 0 of the binary file and so on.
This means you will need to rewrite (or toss) the startup code
(crt0.S), and roll your own linker script (lib/djgpp.djl).
- Raw text -