From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Appending data to executables? Date: Mon, 29 Sep 1997 19:39:06 +0100 Organization: None Distribution: world Message-ID: References: <342C5B94 AT relay DOT probe DOT co DOT uk> <60oh7n$lpm$1 AT goliat DOT eik DOT bme DOT hu> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 26 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Molnar Laszlo writes: >According to my sources, there should be no problem. DJP always uses the >information of the coff header. But decompressing is not recommended ;-) Amendment: it doesn't actually seem to work at all! I originally tried it on my machine at work and it seemed to be ok, but I must have done something wrong or used an old version of DJP, because when I do it now, even appending a single byte to a compressed executable causes a horrible crash! This is using DJP 1.05, which I believe is the latest version... Glancing through the sources, I see you do a virus check in the stub code. It seems likely that my appended data would trigger this, but if so surely I ought to get an error message rather than a crash? It is hardly a big deal: my appending code works fine as long as you don't try to use it at the same time as DJP. But it would be even nicer if both could be used: it would allow people to create a single executable containing both compressed code and some compressed Allegro data tacked on the end, while having full runtime control over which parts of that data get loaded... -- Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ Beauty is a French phonetic corruption of a short cloth neck ornament.