home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / djgpp / go32 / aout.h next >
Encoding:
C/C++ Source or Header  |  1991-05-30  |  2.0 KB  |  80 lines

  1. /* This is file AOUT.H */
  2. /*
  3. ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  4. **
  5. ** This file is distributed under the terms listed in the document
  6. ** "copying.dj", available from DJ Delorie at the address above.
  7. ** A copy of "copying.dj" should accompany this file; if not, a copy
  8. ** should be available from where this file was obtained.  This file
  9. ** may not be distributed without a verbatim copy of "copying.dj".
  10. **
  11. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  12. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. */
  14.  
  15. /* This is file AOUT.H */
  16. /*
  17. ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  18. **
  19. ** This file is distributed under the terms listed in the document
  20. ** "copying.dj", available from DJ Delorie at the address above.
  21. ** A copy of "copying.dj" should accompany this file; if not, a copy
  22. ** should be available from where this file was obtained.  This file
  23. ** may not be distributed without a verbatim copy of "copying.dj".
  24. **
  25. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  26. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27. */
  28.  
  29. /* History:45,17 */
  30. #ifndef _A_OUT_H_
  31. #define    _A_OUT_H_
  32.  
  33. typedef struct filehdr {
  34.     unsigned short f_magic;
  35.     unsigned short f_nscns;
  36.     long f_timdat;
  37.     long f_symptr;
  38.     long f_nsyms;
  39.     unsigned short f_opthdr;
  40.     unsigned short f_flags;
  41.     } FILEHDR;
  42.  
  43. typedef struct aouthdr {
  44.     int magic;
  45.     int vstamp;
  46.     long tsize;
  47.     long dsize;
  48.     long bsize;
  49.     long entry;
  50.     long text_start;
  51.     long data_start;
  52.     } AOUTHDR;
  53.  
  54. typedef struct scnhdr {
  55.     char s_name[8];
  56.     long s_paddr;
  57.     long s_vaddr;
  58.     long s_size;
  59.     long s_scnptr;
  60.     long s_relptr;
  61.     long s_lnnoptr;
  62.     unsigned short s_nreloc;
  63.     unsigned short nlnno;
  64.     long s_flags;
  65.     } SCNHDR;
  66.  
  67.  
  68. typedef struct gnu_aout {
  69.     word32 info;
  70.     word32 tsize;
  71.     word32 dsize;
  72.     word32 bsize;
  73.     word32 symsize;
  74.     word32 entry;
  75.     word32 txrel;
  76.     word32 dtrel;
  77.     } GNU_AOUT;
  78.  
  79. #endif
  80.