rt.sections_darwin_64

Written in the D programming language. This module provides Darwin 64 bit specific support for sections.

Members

Functions

firstTLVDescriptor
const(tlv_descriptor)* firstTLVDescriptor(section_64 section, intptr_t slide)

Returns the first TLV descriptor of the given section.

firstTLVKey
pthread_key_t firstTLVKey(mach_header_64* header)

Returns the first TLV key for the given image.

foreachDataSection
void foreachDataSection(mach_header* header, intptr_t slide, void delegate(void[] sectionData) processor)

Invokes the specified delegate for each (non-empty) data section.

foundTLSRange
bool foundTLSRange(dyld_tlv_info info, void* tlsSymbol)

Returns true if the correct TLS range was found.

getSection
void[] getSection(mach_header* header, intptr_t slide, char* segmentName, char* sectionName)

Returns a section's memory range, or null if not found or empty.

getTLSRange
void[] getTLSRange(void* tlsSymbol)

Returns the TLS range of the image containing the specified TLS symbol, or null if none was found.

sections
const(section_64)[] sections(segment_command_64* segment)

Returns the sections of the given segment.

tlvInfo
dyld_tlv_info tlvInfo(mach_header_64* header)

Returns the TLV info for the given image.

Structs

dyld_tlv_info
struct dyld_tlv_info

TLV info.

Meta

License

Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)

Authors

Jacob Carlborg