struct Ehdr

Defined at line 313 of file ../../src/lib/elfldltl/include/lib/elfldltl/layout.h

Public Members

Word magic
ElfClass elfclass
ElfData elfdata
ElfVersion ident_version
Byte osabi
Byte abiversion
Byte[7] ident_pad
EnumField<ElfType, kSwap> type
EnumField<ElfMachine, kSwap> machine
EnumField<ElfVersion, kSwap, uint32_t> version
Addr entry
Addr phoff
Addr shoff
Word flags
Half ehsize
Half phentsize
Half phnum
Half shentsize
Half shnum
Half shstrndx
static const Word kMagic
static const Half kPnXnum

Public Methods

bool Valid ()

Defined at line 316 of file ../../src/lib/elfldltl/include/lib/elfldltl/layout.h

template <class Diagnostics>
bool Valid (Diagnostics & diagnostics)

This is the verbose version that uses the Diagnostics template API (see

diagnostics.h) to report why it returns false when it does.

Defined at line 327 of file ../../src/lib/elfldltl/include/lib/elfldltl/layout.h

bool Loadable (std::optional<ElfMachine> target)

Defined at line 351 of file ../../src/lib/elfldltl/include/lib/elfldltl/layout.h

bool Loadable (std::optional<ElfMachine> target)

Defined at line 351 of file ../../src/lib/elfldltl/include/lib/elfldltl/layout.h

template <class Diagnostics>
bool Loadable (Diagnostics & diagnostics, std::optional<ElfMachine> target)

This is the verbose version that uses the Diagnostics template API (see

diagnostics.h) to report why it returns false when it does.

Defined at line 358 of file ../../src/lib/elfldltl/include/lib/elfldltl/layout.h

template <class Diagnostics>
bool Loadable (Diagnostics & diagnostics, std::optional<ElfMachine> target)

This is the verbose version that uses the Diagnostics template API (see

diagnostics.h) to report why it returns false when it does.

Defined at line 358 of file ../../src/lib/elfldltl/include/lib/elfldltl/layout.h