next up previous contents
Next: The Program Header Table Up: The ELF File Format Previous: The ELF File Format

   
The ELF Header

The ELF Header is the only section that has a fixed position in the object file. It is always the first section of the file. The other sections are not guaranteed to be in any order or to even be present. The ELF Header describes the type of the object file (relocatable, executable, shared, core), its target architecture, and the version of ELF it is using. The location of the Program Header table, Section Header table, and String table along with associated number and size of entries for each table are also given. Lastly, the ELF Header contains the location of the first executable instruction. The specific fields along with their size requirements that are present in the ELF header are shown in Figure 2.6.
  
Figure: The Program Header
\begin{figure}
\begin{tex2html_preform}\begin{verbatim}
typedef struct {
Elf...
...lf32_Phdr;\end{verbatim}\end{tex2html_preform}
\rule{6.5in}{0.3mm}
\end{figure}



Michael L. Haungs
1998-09-21