Mail Archives: djgpp-workers/2001/01/18/15:29:23
> On Sat, 13 Jan 2001, Mark E. wrote:
> > > - the stub used to produce the .exe program should be the same stub
> > > distributed with the installed djdev (I didn't forget the GO32STUB
> > > feature, I just don't think it's reliable enough, because it
> > > depends on DJGPP.ENV).
> >
> Yes (I assume you meant /dev/env/DJDIR/bin/stubify.exe). But I wonder
> whether we should add to this list SELFDIR/stubify.exe, where SELFDIR is
> the directory part of ld.exe's argv[0]?
As has already been noted, the stub is read in from a djgpp-specific routine
inside bfd where argv[0] is not accessible. To support searching
argv[0]/stubify or a --stub=path command line option, the code that reads in
the stub would have to be moved to ld where argv[0] is accessible and where
we can even add a --stub=path routine if desired. The PE linker from
ld/emulparams/pe.em manages to pass PE specific values to its bfd routine
like an image's base address for example.
Making all these adjustments isn't trivial so I think for now it will be
better to add $DJDIR/bin/stubify.exe to the stub search list and then
plot an overhaul after 2.11 is released.
Mark
- Raw text -