Mail Archives: djgpp/2003/06/17/15:33:42
> 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/
- Raw text -