www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/06/13/14:23:38

Message-Id: <m0wcVKT-000S1kC@ciati.edu.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT edu DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT edu DOT ar>
Organization: INTI
To: Robert Hoehne <robert DOT hoehne AT mathematik DOT tu-chemnitz DOT de>
Date: Fri, 13 Jun 1997 15:38:25 +0000
MIME-Version: 1.0
Subject: Re: Latest stub
CC: djgpp-workers AT delorie DOT com

> 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 ...

SET
------------------------------------ 0 --------------------------------
Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019