|
|
The C structure declaration for the section headers is shown below. This declaration may be found in the header file scnhdr.h.
struct scnhdr
{
char s_name[8]; /* section name */
long s_paddr; /* physical address */
long s_vaddr; /* virtual address */
long s_size; /* section size */
long s_scnptr; /* file ptr to section raw data */
long s_relptr; /* file ptr to relocation */
long s_lnnoptr; /* file ptr to line number */
unsigned short s_nreloc; /* number of relocation entries */
unsigned short s_nlnno; /* number of line number entries */
long s_flags; /* flags */
};
#define SCNHDR struct scnhdr
#define SCNHSZ sizeof(SCNHDR)