Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!umich!ox.com!math.fu-berlin.de!unidui!unido!mcshh!abqhh!drdhh!bjoern From: bjoern@drdhh.hanse.de (Bjoern Kriews) Newsgroups: comp.sys.atari.st.tech Subject: Re: How store extra data at the end of an executable? Message-ID: <2665.04.91@drdhh.hanse.de> Date: 11 Apr 91 17:58:58 GMT References: <615@uqcspe.cs.uq.oz.au> Organization: Digital Island Lines: 20 From article <615@uqcspe.cs.uq.oz.au>, by warwick@cs.uq.oz.au (Warwick Allison): > Try: > 1. Generate your .PRG (eg. with C or M2 linker, etc) > 2. Have a separate program to: > a) Fseek to the end of the .PRG file > b) append any other data Works, but my confuse future loaders, etc. Cleaner method: Define a field in your programs data segment. Taking the offset (in the running program) from your textseg to the fields address you can figure out where your data is on disk. (offset + sizeof(PROGRAMHEADER)). Hope that helps, Bjoern --- bjoern@drdhh.hanse.de = Bjoern Kriews / Stormsweg 6 / 2000 Hamburg 76 / FRG "gaaga mahwe Bjoern urgl ufzae Turbo-C bnub" (J. Willamowius)