core.internal.elf.dl
Simplifies working with shared ELF objects of the current process.
Reference: http://www.dwarfstd.org/
Copyright
Copyright Digital Mars 2015 - 2018.
Types 4
structSharedObjects
Enables iterating over the process' currently loaded shared objects.
Methods
int opApply(scope Callback dg)structSharedObject
A loaded shared ELF object/binary, i.e., executable or shared library.
Fields
dl_phdr_info infoOS-dependent info structure.Methods
SharedObject thisExecutable()Returns the executable of the current process.bool findForAddress(const scope void * address, out SharedObject result)Tries to find the shared object containing the specified address in one of its segments. Returns: True on success.char[] getPath(size_t N)(ref char[N] buffer) if (N > 1) constTries to fill the specified buffer with the path to the ELF file, according to the /proc/<PID>/maps file.int opApply(scope int delegate(ref const Elf_Phdr) @nogc nothrow dg) constIterates over this object's segments.bool findSegmentForAddress(const scope void * address, out const(Elf_Phdr) * result) constTries to find the segment containing the specified address. Returns: True on success.