ddn.elf.dynamic
ELF dynamic section handling functionality.
This module provides utilities for reading and manipulating ELF dynamic sections, which contain information needed for dynamic linking and loading.
NOTE: Implementation is minimal to ensure GDC compatibility. Some advanced features may be limited.
Types 3
structElfDynamicEntry
Represents a single entry in an ELF dynamic section.
Dynamic entries contain tags and values that describe how to program should be dynamically linked.
Methods
string getString()Constructors
this(gelf.DynamicEntry entry, ElfStringTable strtab)structDynamicEntryRange
Range for iterating over dynamic entries.
Fields
const(ubyte)[] _datasize_t _currentIndexsize_t _totalEntriestypes.ElfClass _classElfStringTable _strtabMethods
bool empty() constvoid popFront()typeof(this) save()gelf.DynamicEntry readGelfEntry(size_t idx)Constructors
this()this(const(ubyte)[] data, size_t totalEntries, types.ElfClass elfClass,
ElfStringTable strtab)this(const(ubyte)[] data, size_t currentIndex, size_t totalEntries,
types.ElfClass elfClass, ElfStringTable strtab)structElfDynamic
Represents an ELF dynamic section.
This struct provides access to dynamic linking information needed to load shared libraries and resolve symbols.
Methods
ElfDynamicEntry getEntry(size_t index)string getSoname()string[] getNeededLibraries()string getRpath()string getRunpath()bool hasTextRelocations()gelf.DynamicEntry readGelfEntry(size_t idx)Functions 1
fn
ElfDynamic getDynamic(ElfFile file)