PatchworkOS
Loading...
Searching...
No Matches
elf_hdr_t Struct Reference

ELF file header. More...

#include <elf.h>

Data Fields

uint8_t ident [16]
 
elf_hdr_type_t type
 
elf_hdr_machine_t machine
 
elf_hdr_version_t version
 
uint64_t entry
 
uint64_t phdrOffset
 
uint64_t shdrOffset
 
uint32_t flags
 
uint16_t headerSize
 
uint16_t phdrSize
 
uint16_t phdrAmount
 
uint16_t shdrSize
 
uint16_t shdrAmount
 
uint16_t shdrStringIndex
 

Detailed Description

ELF file header.

The elf_hdr_t structure stored at the beginning of ELF files.

Definition at line 275 of file elf.h.

Field Documentation

◆ entry

uint64_t elf_hdr_t::entry

Definition at line 281 of file elf.h.

Referenced by kernel_load(), and loader_load_program().

◆ flags

uint32_t elf_hdr_t::flags

Definition at line 284 of file elf.h.

◆ headerSize

uint16_t elf_hdr_t::headerSize

Definition at line 285 of file elf.h.

◆ ident

uint8_t elf_hdr_t::ident[16]

Definition at line 277 of file elf.h.

◆ machine

elf_hdr_machine_t elf_hdr_t::machine

Definition at line 279 of file elf.h.

◆ phdrAmount

uint16_t elf_hdr_t::phdrAmount

◆ phdrOffset

uint64_t elf_hdr_t::phdrOffset

Definition at line 282 of file elf.h.

Referenced by kernel_load().

◆ phdrSize

uint16_t elf_hdr_t::phdrSize

◆ shdrAmount

uint16_t elf_hdr_t::shdrAmount

Definition at line 289 of file elf.h.

Referenced by load_section_headers().

◆ shdrOffset

uint64_t elf_hdr_t::shdrOffset

Definition at line 283 of file elf.h.

Referenced by load_section_headers().

◆ shdrSize

uint16_t elf_hdr_t::shdrSize

Definition at line 288 of file elf.h.

Referenced by find_section_by_type(), load_section_headers(), and load_symbol_table().

◆ shdrStringIndex

uint16_t elf_hdr_t::shdrStringIndex

Definition at line 290 of file elf.h.

◆ type

elf_hdr_type_t elf_hdr_t::type

Definition at line 278 of file elf.h.

◆ version

elf_hdr_version_t elf_hdr_t::version

Definition at line 280 of file elf.h.


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