Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

/users/u3/mtikir/PMaCInstrumentor_v1601/include/defines/AOutHeader.d

Go to the documentation of this file.
00001 /*
00002 ##################################################################
00003 XCOFF32     XCOFF64     Name     Description
00004 Offset     Length     Offset     Length
00005 0     2     0     2     o_mflag     Flags, how to execute
00006 2     2     2     2     o_vstamp     Version
00007 4     4     56     8     o_tsize+     Text size in bytes
00008 8     4     64     8     o_dsize+     Initialized data size in bytes
00009 12     4     72     8     o_bsize+     Uninitialized data size in bytes
00010 16     4     80     8     o_entry+     Entry point descriptor (virtual address)
00011 20     4     8     8     o_text_start+     Base address of text (virtual address)
00012 24     4     16     8     o_data_start+     Base address of data (virtual address)
00013 28     4     24     8     o_toc+     Address of TOC anchor
00014 32     2     32     2     o_snentry     Section number for entry point
00015 34     2     34     2     o_sntext     Section number for .text
00016 36     2     36     2     o_sndata     Section number for .data
00017 38     2     38     2     o_sntoc     Section number for TOC
00018 40     2     40     2     o_snloader     Section number for loader data
00019 42     2     42     2     o_snbss     Section number for .bss
00020 44     2     44     2     o_algntext     Maximum alignment for .text
00021 46     2     46     2     o_algndata     Maximum alignment for .data
00022 48     2     48     2     o_modtype     Module type field
00023 50     1     50     1     o_cpuflag     Bit flags - cpu types of objects
00024 51     1     51     1     o_cputype     Reserved for CPU type
00025 52     4     88     8     o_maxstack+     Maximum stack size allowed (bytes)
00026 56     4     96     8     o_maxdata+     Maximum data size allowed (bytes)
00027 60     4     4     4     o_debugger+     Reserved for debuggers.
00028 64     8     52     4     o_resv2     Reserved Field must contain 0s.
00029 0    0     104     116     o_resv3     Reserved. Field must contain 0s.
00030 +Use "32" or "64" suffix when __XCOFF_HYBRID__ is defined.
00031 ##################################################################
00032 */
00033 
00034 #define AOUTHEADER_MACROS_BASIS(__str)  \
00035     GET_FIELD_BASIS(uint16_t,o_mflag); \
00036     GET_FIELD_BASIS(uint16_t,o_vstamp); \
00037     GET_FIELD_BASIS(uint64_t,o_tsize); \
00038     GET_FIELD_BASIS(uint64_t,o_dsize); \
00039     GET_FIELD_BASIS(uint64_t,o_bsize); \
00040     GET_FIELD_BASIS(uint64_t,o_entry); \
00041     GET_FIELD_BASIS(uint64_t,o_text_start); \
00042     GET_FIELD_BASIS(uint64_t,o_data_start); \
00043     GET_FIELD_BASIS(uint64_t,o_toc); \
00044     GET_FIELD_BASIS(uint16_t,o_snentry); \
00045     GET_FIELD_BASIS(uint16_t,o_sntext); \
00046     GET_FIELD_BASIS(uint16_t,o_sndata); \
00047     GET_FIELD_BASIS(uint16_t,o_sntoc); \
00048     GET_FIELD_BASIS(uint16_t,o_snloader); \
00049     GET_FIELD_BASIS(uint16_t,o_snbss); \
00050     GET_FIELD_BASIS(uint16_t,o_algntext); \
00051     GET_FIELD_BASIS(uint16_t,o_algndata); \
00052     GET_FIELD_BASIS(uint8_t,o_cpuflag); \
00053     GET_FIELD_BASIS(uint8_t,o_cputype); \
00054     GET_FIELD_BASIS(uint64_t,o_maxstack); \
00055     GET_FIELD_BASIS(uint64_t,o_maxdata); \
00056     GET_FIELD_BASIS(uint32_t,o_debugger); \
00057 
00059 #define AOUTHEADER_MACROS_CLASS(__str)  \
00060     GET_FIELD_CLASS(uint16_t,o_mflag); \
00061     GET_FIELD_CLASS(uint16_t,o_vstamp); \
00062     GET_FIELD_CLASS(uint64_t,o_tsize); \
00063     GET_FIELD_CLASS(uint64_t,o_dsize); \
00064     GET_FIELD_CLASS(uint64_t,o_bsize); \
00065     GET_FIELD_CLASS(uint64_t,o_entry); \
00066     GET_FIELD_CLASS(uint64_t,o_text_start); \
00067     GET_FIELD_CLASS(uint64_t,o_data_start); \
00068     GET_FIELD_CLASS(uint64_t,o_toc); \
00069     GET_FIELD_CLASS(uint16_t,o_snentry); \
00070     GET_FIELD_CLASS(uint16_t,o_sntext); \
00071     GET_FIELD_CLASS(uint16_t,o_sndata); \
00072     GET_FIELD_CLASS(uint16_t,o_sntoc); \
00073     GET_FIELD_CLASS(uint16_t,o_snloader); \
00074     GET_FIELD_CLASS(uint16_t,o_snbss); \
00075     GET_FIELD_CLASS(uint16_t,o_algntext); \
00076     GET_FIELD_CLASS(uint16_t,o_algndata); \
00077     GET_FIELD_CLASS(uint8_t,o_cpuflag); \
00078     GET_FIELD_CLASS(uint8_t,o_cputype); \
00079     GET_FIELD_CLASS(uint64_t,o_maxstack); \
00080     GET_FIELD_CLASS(uint64_t,o_maxdata); \
00081     GET_FIELD_CLASS(uint32_t,o_debugger); \
00082 

Generated on Mon Jan 28 11:08:31 2008 for PMaCInstrumentor by doxygen 1.3.5