core.internal.elf.io

Provides (read-only) memory-mapped I/O for ELF files.

Reference: http://www.dwarfstd.org/

Types 2

private structTypedMMapRegion(T)
Fields
private MMapRegion region
const(T) * data
Constructors
this(int fd, size_t offset, size_t length = 1)
private structMMapRegion
Fields
const(ubyte)[] data
Constructors
this(int fd, size_t pageOffset, size_t pageCount)Instantiate an instance of this struct with the provided offset / length
Destructors

Functions 1

private fnchar * readLink(const(char) * link)

Variables 2

enumvarELFCLASS32 = 1

ELF class for 32-bit ELF files.

enumvarELFCLASS64 = 2

ELF class for 64-bit ELF files.

Templates 1

tmplElfIO(Elf_Ehdr, Elf_Shdr, ubyte ELFCLASS)

File-based memory-mapped I/O (read-only). Only supports ELF files with a byte-order matching the target platform's.

Parameters

Elf_EhdrExpected type of the ELF header (Elf{32,64}_Ehdr)
Elf_ShdrExpected type of the ELF section header (Elf{32,64}_Shdr)
ELFCLASSExpected ELF class (ELFCLASS{32,64})
Types
struct ElfFile

ELF file (with memory-mapped ELF header).

Enables iterating over an ELF file's (named) sections.

Memory-mapped ELF section header.

struct ElfSection

Memory-mapped ELF section data.