Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Robert Hoehne Date: Fri, 13 Jun 1997 15:38:25 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Latest stub CC: djgpp-workers AT delorie DOT com Precedence: bulk > 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