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 / filehdr.h < prev    next >
Text File  |  1997-10-29  |  1KB  |  35 lines

  1. /* mac06ゥ1997 by HNS/DSITRI hns@computer.org
  2. ** filehdr.h
  3. */
  4.  
  5. #ifdef __SC__    /* Symantec C++ for PowerPC 8.0 */
  6. #pragma options align=mac68k
  7. #endif
  8.  
  9. struct filehdr {
  10.         unsigned short    f_magic;        /* magic number */
  11.         unsigned short    f_nscns;        /* # of sections */
  12.         unsigned long     f_timdat;       /* time stamp */
  13.         unsigned long        f_symptr;       /* symbol table offset */
  14.         long                f_nsyms;        /* # of symbols */
  15.         unsigned short    f_opthdr;       /* size of system header */
  16.         unsigned short    f_flags;        /* flags, see below */
  17. };
  18.  
  19. #ifdef __SC__    /* Symantec C++ for PowerPC 8.0 */
  20. #pragma options align=reset
  21. #endif
  22.  
  23. enum filehdr_flags {
  24.         F_RELFLG = 0x01,                /* relocs have been stripped */
  25.         F_EXEC = 0x02,                  /* executable file (or shlib) */
  26.         F_LNNO = 0x04,                  /* line numbers have been stripped */
  27.         F_LSYMS = 0x08                  /* symbols have been stripped */
  28. };
  29.  
  30. #define    FILHDR    struct filehdr
  31. #define FILHSZ    sizeof(FILHDR)
  32.  
  33. #define F_MAGIC    (0737)    /* procesor model dependent */
  34.  
  35. /* EOF */