IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
elf.hpp File Reference

ELF header info. More...

#include <array>
#include <cstddef>
#include <arch/types.hpp>
Include dependency graph for elf.hpp:

Go to the source code of this file.

Classes

struct  igros::sys::elfIdentity_t
 ELF identity class. More...
struct  igros::sys::elfHeader_t
 ELF file header. More...
struct  igros::sys::elfProgramHeader_t
 ELF program header. More...

Namespaces

namespace  igros
 IgrOS kernel: common types and literals.
namespace  igros::sys
 System formats (ELF).

Enumerations

enum class  igros::sys::ELF_CLASS : igros_byte_t { igros::sys::NONE = 0x00_u8 , igros::sys::CLASS32 = 0x01_u8 , igros::sys::CLASS64 = 0x02_u8 }
 ELF class type. More...
enum class  igros::sys::ELF_DATA : igros_byte_t { igros::sys::NONE = 0x00_u8 , igros::sys::LSB = 0x01_u8 , igros::sys::MSB = 0x02_u8 }
 ELF data type. More...
enum class  igros::sys::ELF_VERSION : igros_byte_t { igros::sys::NONE = 0x00_u8 , igros::sys::CURRENT = 0x01_u8 }
 ELF version. More...
enum class  igros::sys::ELF_ABI : igros_byte_t {
  igros::sys::SYSV = 0x00_u8 , igros::sys::HP_UX = 0x01_u8 , igros::sys::NETBSD = 0x02_u8 , igros::sys::LINUX = 0x03_u8 ,
  igros::sys::HURD = 0x04_u8 , igros::sys::SOLARIS = 0x06_u8 , igros::sys::AIX = 0x07_u8 , igros::sys::IRIS = 0x08_u8 ,
  igros::sys::FREEBSD = 0x09_u8 , igros::sys::TRU64 = 0x0A_u8 , igros::sys::NOVELL = 0x0B_u8 , igros::sys::OPENBSD = 0x0C_u8 ,
  igros::sys::VMS = 0x0D_u8 , igros::sys::NONSTOP = 0x0E_u8 , igros::sys::AROS = 0x0F_u8 , igros::sys::FENIX = 0x10_u8 ,
  igros::sys::CLOUD = 0x11_u8 , igros::sys::VOS = 0x12_u8
}
 ELF OS ABI. More...
enum class  igros::sys::ELF_TYPE : igros_word_t {
  igros::sys::NONE = 0x0000_u16 , igros::sys::REL = 0x0001_u16 , igros::sys::EXEC = 0x0002_u16 , igros::sys::DYN = 0x0003_u16 ,
  igros::sys::CORE = 0x0004_u16 , igros::sys::LOOS = 0xFE00_u16 , igros::sys::HIOS = 0xFEFF_u16 , igros::sys::LOPROC = 0xFF00_u16 ,
  igros::sys::HIPROC = 0xFFFF_u16
}
 ELF type. More...
enum class  igros::sys::ELF_MACHINE : igros_word_t {
  igros::sys::NONE = 0x00_u16 , igros::sys::M32 = 0x01_u16 , igros::sys::SPARC = 0x02_u16 , igros::sys::I386 = 0x03_u16 ,
  igros::sys::M68K = 0x04_u16 , igros::sys::M88K = 0x05_u16 , igros::sys::I8086 = 0x07_u16 , igros::sys::MIPS = 0x08_u16 ,
  igros::sys::POWERPC = 0x14_u16 , igros::sys::S390 = 0x16_u16 , igros::sys::ARM = 0x28_u16 , igros::sys::SUPERH = 0x2A_u16 ,
  igros::sys::IA_64 = 0x32_u16 , igros::sys::X86_64 = 0x3E_u16 , igros::sys::AARCH64 = 0xB7_u16 , igros::sys::RISC_V = 0xF3_u16
}
 ELF machine type. More...
enum class  igros::sys::ELF_PROGRAM_TYPE : igros_dword_t {
  igros::sys::NONE = 0x00000000_u32 , igros::sys::LOAD = 0x00000001_u32 , igros::sys::DYNAMIC = 0x00000002_u32 , igros::sys::INTERP = 0x00000003_u32 ,
  igros::sys::NOTE = 0x00000004_u32 , igros::sys::SHLIB = 0x00000005_u32 , igros::sys::PHDR = 0x00000006_u32 , igros::sys::LOOS = 0x60000000_u32 ,
  igros::sys::HIOS = 0x6FFFFFFF_u32 , igros::sys::LOPROC = 0x70000000_u32 , igros::sys::HIPROC = 0x7FFFFFFF_u32
}
 ELF program type. More...

Variables

static constexpr auto igros::sys::ELF_MAGIC_0 {0x7F_u8}
 127
static constexpr auto igros::sys::ELF_MAGIC_1 {0x45_u8}
 'E'
static constexpr auto igros::sys::ELF_MAGIC_2 {0x4C_u8}
 'L'
static constexpr auto igros::sys::ELF_MAGIC_3 {0x46_u8}
 'F'

Detailed Description

ELF header info.

Date
03 Nov 2026
Author
Igor Baklykov

Definition in file elf.hpp.