DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Common Object File Format (COFF)

Section header declaration

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)


Next topic: .bss section header
Previous topic: Section header flags

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003