LIEF: Library to Instrument Executable Formats Version 1.0.0
Loading...
Searching...
No Matches
LIEF::MachO::ThreadLocalVariables::Thunk Struct Reference

Descriptor for a single thread-local variable. More...

#include <ThreadLocalVariables.hpp>

Public Member Functions

std::string to_string () const

Public Attributes

uint64_t func = 0
 Address of the initializer function (tlv_thunk).
uint64_t key = 0
 pthread_key_t key used by the runtime
uint64_t offset = 0
 Offset of the variable in the TLS block.

Detailed Description

Descriptor for a single thread-local variable.

The layout mirrors the tlv_descriptor structure defined in <mach-o/loader.h> (see also libdyld/ThreadLocalVariables.h in dyld).

Member Function Documentation

◆ to_string()

std::string LIEF::MachO::ThreadLocalVariables::Thunk::to_string ( ) const

Referenced by operator<<.

Member Data Documentation

◆ func

uint64_t LIEF::MachO::ThreadLocalVariables::Thunk::func = 0

Address of the initializer function (tlv_thunk).

◆ key

uint64_t LIEF::MachO::ThreadLocalVariables::Thunk::key = 0

pthread_key_t key used by the runtime

◆ offset

uint64_t LIEF::MachO::ThreadLocalVariables::Thunk::offset = 0

Offset of the variable in the TLS block.


The documentation for this struct was generated from the following file: