Mail Archives: djgpp-workers/1997/06/15/16:55:10
Salvador Eduardo Tropea (SET) wrote:
>
> > On Fri, 13 Jun 1997, Oberhumer Markus wrote:
> > > DJP comes with an option ('-s') to put the decompression code into the stub -
> > > in this case it will be 2560 bytes long.
> > >
> > > The PMODE stub is > 10kB and I remember having seen some other stubs
> > > (DLM ?) that are even longer.
>
> And Robert replied:
> > Ok. But I do you handle such files with any of the binutils?
> [snip]
>
> We saw a lot of post in this thread but the main point wasn't exposed.
> Please Robert can you clarify why do you need to make fixed the size of the
> stub? Is to simplify the code? can't you create a library function that:
> 1) Guess the size is 2048 and tries to find the COFF signature.
> 2) If (1) fails makes a brut-force search skiping chuncks of 512 bytes (that's
> the alignment of the stub, right?).
> And use it in all the places that needs that.
> Perhaps that's impossible but if you don't put all clear ...
Hey, what about the fact that the size of the stub is coded into the exe
header of the file (`dos image load size' or whatever it's called)? Use
that to skip to where the coff image should be and work from there.
Bill
--
Leave others their otherness.
- Raw text -