Elf32_Ehdr Struct Reference

ELF file header. More...

`#include <ELF.h>`

## Public Attributes

unsigned char | e_ident [EI_NIDENT]
| Magic number identifying the file format.
Elf32_Half | e_type
| Identifies the object file format.
Elf32_Half | e_machine
| Specified the architecture for the object file.
Elf32_Word | e_version
| Object file version.
Elf32_Addr | e_entry
| Virtual address of the entry point, or 0.
Elf32_Off | e_phoff
| Program header table offset in bytes, or 0 if no program header table.
Elf32_Off | e_shoff
| Section header table offset in bytes, or 0 if no section header table.
Elf32_Word | e_flags
| Processor-specific flags associated with the file.
Elf32_Half | e_ehsize
| The ELF header's size in bytes.
Elf32_Half | e_phentsize
| Size in bytes of one entry in the program header table.
Elf32_Half | e_phnum
| Number of entries in the program header table.
Elf32_Half | e_shentsize
| Size in bytes of an entry in the section header table.
Elf32_Half | e_shnum
| Number of entries in the section header table.
Elf32_Half | e_shstrndx
| Section header table index of the section name string table.

## Detailed Description

ELF file header.

## Member Data Documentation

Elf32_Half Elf32_Ehdr::e_ehsize

The ELF header's size in bytes.

Elf32_Addr Elf32_Ehdr::e_entry

Virtual address of the entry point, or 0.

Elf32_Word Elf32_Ehdr::e_flags

Processor-specific flags associated with the file.

unsigned char Elf32_Ehdr::e_ident

Magic number identifying the file format.

Elf32_Half Elf32_Ehdr::e_machine

Specified the architecture for the object file.

Elf32_Half Elf32_Ehdr::e_phentsize

Size in bytes of one entry in the program header table.

Elf32_Half Elf32_Ehdr::e_phnum

Number of entries in the program header table.

Elf32_Off Elf32_Ehdr::e_phoff

Program header table offset in bytes, or 0 if no program header table.

Elf32_Half Elf32_Ehdr::e_shentsize

Size in bytes of an entry in the section header table.

Elf32_Half Elf32_Ehdr::e_shnum

Number of entries in the section header table.

Elf32_Off Elf32_Ehdr::e_shoff

Section header table offset in bytes, or 0 if no section header table.

Elf32_Half Elf32_Ehdr::e_shstrndx

Section header table index of the section name string table.

Elf32_Half Elf32_Ehdr::e_type

Identifies the object file format.

Elf32_Word Elf32_Ehdr::e_version

Object file version.

The documentation for this struct was generated from the following file:

- apps/elftosb/common/ELF.h