PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
Elf64_Ehdr Struct Reference

ELF64 Header. More...

#include <elf.h>

Collaboration diagram for Elf64_Ehdr:

Data Fields

unsigned char e_ident [EI_NIDENT]
 Identification bytes.
 
Elf64_Half e_type
 Object file type.
 
Elf64_Half e_machine
 The required architecture.
 
Elf64_Word e_version
 Object file version.
 
Elf64_Addr e_entry
 Entry point virtual address.
 
Elf64_Off e_phoff
 Program header tables's file offset in bytes, or 0 if there are no program headers.
 
Elf64_Off e_shoff
 Section header table's file offset in bytes, or 0 if there are no section headers.
 
Elf64_Word e_flags
 Processor-specific flags.
 
Elf64_Half e_ehsize
 Size of this header in bytes, should be sizeof(Elf64_Ehdr)
 
Elf64_Half e_phentsize
 Size in bytes of one entry in the files program header table.
 
Elf64_Half e_phnum
 Number of entries in the program header table.
 
Elf64_Half e_shentsize
 Size in bytes of one entry in the files section header table.
 
Elf64_Half e_shnum
 
Elf64_Half e_shstrndx
 

Detailed Description

ELF64 Header.

Stored in the beginning of an ELF file.

See also
https://gabi.xinuos.com/elf/02-eheader.html

Definition at line 94 of file elf.h.

Field Documentation

◆ e_ident

unsigned char Elf64_Ehdr::e_ident[EI_NIDENT]

Identification bytes.

Definition at line 96 of file elf.h.

◆ e_type

Elf64_Half Elf64_Ehdr::e_type

Object file type.

Definition at line 97 of file elf.h.

◆ e_machine

Elf64_Half Elf64_Ehdr::e_machine

The required architecture.

Definition at line 98 of file elf.h.

◆ e_version

Elf64_Word Elf64_Ehdr::e_version

Object file version.

Definition at line 99 of file elf.h.

◆ e_entry

Elf64_Addr Elf64_Ehdr::e_entry

Entry point virtual address.

Definition at line 100 of file elf.h.

◆ e_phoff

Elf64_Off Elf64_Ehdr::e_phoff

Program header tables's file offset in bytes, or 0 if there are no program headers.

Definition at line 101 of file elf.h.

◆ e_shoff

Elf64_Off Elf64_Ehdr::e_shoff

Section header table's file offset in bytes, or 0 if there are no section headers.

Definition at line 102 of file elf.h.

◆ e_flags

Elf64_Word Elf64_Ehdr::e_flags

Processor-specific flags.

Definition at line 103 of file elf.h.

◆ e_ehsize

Elf64_Half Elf64_Ehdr::e_ehsize

Size of this header in bytes, should be sizeof(Elf64_Ehdr)

Definition at line 104 of file elf.h.

◆ e_phentsize

Elf64_Half Elf64_Ehdr::e_phentsize

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

Definition at line 105 of file elf.h.

◆ e_phnum

Elf64_Half Elf64_Ehdr::e_phnum

Number of entries in the program header table.

Definition at line 106 of file elf.h.

◆ e_shentsize

Elf64_Half Elf64_Ehdr::e_shentsize

Size in bytes of one entry in the files section header table.

Definition at line 107 of file elf.h.

◆ e_shnum

Elf64_Half Elf64_Ehdr::e_shnum

Number of entries in the section header table, or 0 if there are no section headers.

If the number of sections is greater than or equal to SHN_LORESERVE (0xff00), this field contains 0 and the actual number of section header table entires is contained in the sh_size field of section header index 0.

Definition at line 114 of file elf.h.

◆ e_shstrndx

Elf64_Half Elf64_Ehdr::e_shstrndx

Section header table index of the entry associated with the section name string table, or SHN_UNDEF if there are no section names.

If the section name string table section index is greater than or equal to SHN_LORESERVE (0xff00), this field contains SHN_XINDEX(0xffff) and the actual section index is contained in the sh_link field of section header index 0.

Definition at line 123 of file elf.h.


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