core.internal.elf.io
Provides (read-only) memory-mapped I/O for ELF files.
Reference: http://www.dwarfstd.org/
Copyright
Copyright Digital Mars 2015 - 2018.
Functions 1
Variables 2
enumvar
ELFCLASS32 = 1ELF class for 32-bit ELF files.
enumvar
ELFCLASS64 = 2ELF 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_Ehdr | Expected type of the ELF header (Elf{32,64}_Ehdr) |
Elf_Shdr | Expected type of the ELF section header (Elf{32,64}_Shdr) |
ELFCLASS | Expected ELF class (ELFCLASS{32,64}) |
Types
struct ElfFile
ELF file (with memory-mapped ELF header).
struct NamedSections
Enables iterating over an ELF file's (named) sections.
struct ElfSectionHeader
Memory-mapped ELF section header.
struct ElfSection
Memory-mapped ELF section data.