www.delorie.com/archives/browse.cgi | search |
From: | "Ilya P. Ryzhenkov" <ilya AT spy DOT isp DOT nsc DOT ru> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: COFF file size |
Date: | Fri, 29 Nov 1996 23:11:37 -0800 |
Organization: | Institute of Semiconductor Physics |
Lines: | 17 |
Distribution: | world |
Message-ID: | <329FDE29.4FC7@spy.isp.nsc.ru> |
References: | <199611290724 DOT CAA04246 AT delorie DOT com> |
Reply-To: | ilya AT spy DOT isp DOT nsc DOT ru |
NNTP-Posting-Host: | arab.isp.nsc.ru |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Kuang-Chun Cheng wrote: > Could someone show me a easy way to determine COFF file size (in bytes) > through COFF header information? Thanks a lot. WARNING : all the following is IMHO, AFAIK etc ... COFF header info is not enough, as it doesn't store number of relocation items in COFF file and String table size. You *HAVE* to load at least all section's and symbol's entries to calculate the size. Look at coff.h in djgpp/include directory for description of COFF header structure and sizes of all data things. -- Sincerely yours, Ilya ----------------------------------------------------------------------------- mailto://ilya AT spy DOT isp DOT nsc DOT ru http://spy.isp.nsc.ru
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |