home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1999 February / MACPOWER-1999-02.ISO.7z / MACPOWER-1999-02.ISO / 9902⁄AMUG / UTILITY / mac06-0.95.sit / mac06-0.95 / usr / include / coff / scnhdr.h < prev    next >
Text File  |  1997-10-29  |  2KB  |  44 lines

  1. /* mac06ゥ1997 by HNS/DSITRI hns@computer.org
  2. ** scnhdr.h
  3. */
  4.  
  5. #ifdef __SC__    /* Symantec C++ for PowerPC 8.0 */
  6. #pragma options align=mac68k
  7. #endif
  8.  
  9. struct scnhdr {
  10.         char            s_name[8];      /* name of section (e.g., ".text") */
  11.         long            s_paddr;        /* physical addr, used for standalone */
  12.         long            s_vaddr;        /* virtual address */
  13.         long            s_size;         /* size of section */
  14.         long            s_scnptr;       /* file offset of section */
  15.         long            s_relptr;       /* points to relocs for section */
  16.         long            s_lnnoptr;      /* points to line numbers for section */
  17.         unsigned short  s_nreloc;       /* # of relocs */
  18.         unsigned short  s_nlnno;        /* # of line no's */
  19.         long            s_flags;        /* section flags -- see below */
  20. };
  21.  
  22. enum scnhdr_flags {
  23.         STYP_REG = 0x00,        /* regular (alloc'ed, reloc'ed, loaded) */
  24.         STYP_DSECT = 0x01,      /* dummy   (reloc'd) */
  25.         STYP_NOLOAD = 0x02,     /* no-load (reloc'd) */
  26.         STYP_GROUP = 0x04,      /* grouped */
  27.         STYP_PAD = 0x08,        /* padding (loaded) */
  28.         STYP_COPY = 0x10,       /* ??? */
  29.         STYP_TEXT = 0x20,       /* text */
  30.         STYP_DATA = 0x40,       /* data */
  31.         STYP_BSS = 0x80,        /* bss */
  32.         STYP_INFO = 0x200,      /* comment (!loaded, !alloc'ed, !reloc'd) */
  33.         STYP_OVER = 0x400,      /* overlay (!allocated, reloc'd, !loaded) */
  34.         STYP_LIB = 0x800        /* lists shared library files */
  35. };
  36.  
  37. #define SCNHDR struct scnhdr
  38. #define SCNHSZ sizeof(SCNHDR)
  39.  
  40. #ifdef __SC__    /* Symantec C++ for PowerPC 8.0 */
  41. #pragma options align=reset
  42. #endif
  43.  
  44. /* EOF */