Mail Archives: djgpp-workers/1999/01/25/06:22:06
On Mon, 25 Jan 1999, Michael Callahan wrote:
> Incidentally, I now vaguely recall that DJGPP has a crt0 and a crt1. I
> can't remember which does the DPMI stuff
Actually, neither. Most of the guts of allocating DPMI memory for the
program code and data and reading the info from .exe into memory is done
by the stub loader (stub.asm). crt0.S is left with only setting up the
stack, more or less.
So the above means you needed to change the stub as well, right? And if
so, stubify needs to be customized, and the linker needs either a
recompile or some custom setup (to take the stub from a non-default
place).
I hope that at least you used the versions of stub and crt0 from v2.02 as
the base, since there were some important changes lately in these files.
Thanks for the rest of explanations.
- Raw text -