COFF_AOUTHDR Struct Reference
********************* AOUT "OPTIONAL HEADER" *********************
More...
#include <coff.h>
|
Data Fields |
| char | magic [2] |
| | type of file
|
| char | vstamp [2] |
| | version stamp
|
| char | tsize [4] |
| | text size in bytes, padded to FW bdry
|
| char | dsize [4] |
| | initialized data " "
|
| char | bsize [4] |
| | uninitialized data " "
|
| char | entry [4] |
| | entry pt.
|
| char | text_start [4] |
| | base of text used for this file
|
| char | data_start [4] |
| | base of data used for this file
|
Detailed Description
********************* AOUT "OPTIONAL HEADER" *********************
Linux COFF must have this "optional" header. Standard COFF has no entry location for the "entry" point. They normally would start with the first location of the .text section. This is not a good idea for linux. So, the use of this "optional" header is not optional. It is required.
Do not be tempted to assume that the size of the optional header is a constant and simply index the next byte by the size of this structure. Use the 'f_opthdr' field in the main coff header for the size of the structure actually written to the file!!
Definition at line 149 of file coff.h.
Field Documentation
uninitialized data " "
Definition at line 155 of file coff.h.
base of data used for this file
Definition at line 158 of file coff.h.
initialized data " "
Definition at line 154 of file coff.h.
entry pt.
Definition at line 156 of file coff.h.
type of file
Definition at line 151 of file coff.h.
base of text used for this file
Definition at line 157 of file coff.h.
text size in bytes, padded to FW bdry
Definition at line 153 of file coff.h.
version stamp
Definition at line 152 of file coff.h.
The documentation for this struct was generated from the following file:
Generated on Mon May 1 21:47:02 2006 for KernelAPI by
1.4.6-5