delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/28/19:18:14

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Appending data to executables?
Date: 28 Sep 1997 06:35:31 GMT
Organization: The National Capital FreeNet
Lines: 20
Message-ID: <60ktrj$qv7@freenet-news.carleton.ca>
References: <342C5B94 AT relay DOT probe DOT co DOT uk>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet2.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

"Hargreaves, Shawn" (shawnh AT probe DOT co DOT uk) writes:
> A simple question for anyone who knows about this: are there any gotchas   
> that I should be aware of when appending binary data onto the end of a   
> djgpp executable? It seems to work quite happily, but is there any danger   
> of this upsetting the stub in some way? What about if the file is   
> compressed with DJP? (as long the data is appended after the compression   
> is done, it seems to work ok, but I'm very suspicious of this :-)

Just how do you do such appending? Make a C program for editing the data
that somehow knows where the exe ends and the data begins, to fseek to
there and read/write? How about when the exe needs to read its own
attached stuff back, or modify it? Same thing? Won't this cause errors in
windows and other file sharing environments when the exe will be "in use"?

--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


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