KallistiOS  2.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Data Fields
elf_hdr_t Struct Reference

ELF file header. More...

#include <kos/elf.h>

Data Fields

uint8 ident [16]
 ELF identifier.
uint16 type
 ELF file type.
uint16 machine
 ELF file architecture.
uint32 version
 Object file version.
uint32 entry
 Entry point.
uint32 phoff
 Program header offset.
uint32 shoff
 Section header offset.
uint32 flags
 Processor flags.
uint16 ehsize
 ELF header size in bytes.
uint16 phentsize
 Program header entry size.
uint16 phnum
 Program header entry count.
uint16 shentsize
 Section header entry size.
uint16 shnum
 Section header entry count.
uint16 shstrndx
 String table section index.

Detailed Description

ELF file header.

This header is at the beginning of any valid ELF binary and serves to identify the architecture of the binary and various data about it.


Field Documentation

uint16 elf_hdr_t::ehsize

ELF header size in bytes.

uint32 elf_hdr_t::entry

Entry point.

uint32 elf_hdr_t::flags

Processor flags.

uint8 elf_hdr_t::ident[16]

ELF identifier.

uint16 elf_hdr_t::machine

ELF file architecture.

uint16 elf_hdr_t::phentsize

Program header entry size.

uint16 elf_hdr_t::phnum

Program header entry count.

uint32 elf_hdr_t::phoff

Program header offset.

uint16 elf_hdr_t::shentsize

Section header entry size.

uint16 elf_hdr_t::shnum

Section header entry count.

uint32 elf_hdr_t::shoff

Section header offset.

uint16 elf_hdr_t::shstrndx

String table section index.

uint16 elf_hdr_t::type

ELF file type.

uint32 elf_hdr_t::version

Object file version.


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