Date: Tue, 17 Jun 2003 15:33:18 -0400 Message-Id: <200306171933.h5HJXIJw010320@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com CC: djgpp AT delorie DOT com In-reply-to: <055b01c33505$aecfabe0$0600000a@broadpark.no> (giva@bgnett.no) Subject: Re: Custom COFF-header References: <055b01c33505$aecfabe0$0600000a AT broadpark DOT no> Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Is it possible to add custom fields to the COFF or stub.asm header > without destroying anything (checksums etc.). Not really. > Problem: I want to read N*512 blocks of an djgpp .exe-image > from a tftp-server to a diskless (only RAM-disk) client. In order > not to transfer the same image when not needed, I want to check > against some timestamp and version info in COFF header. > If they match, I terminated the tftp transfer and go on with my > business. Use the FILHDR.f_timdat field. You'll probably have to set it yourself, though. There's also AOUTHDR.vstamp http://www.delorie.com/djgpp/doc/coff/