MCPcopy Create free account
hub / github.com/Force67/prosperity / patchTlsGetAddr

Function patchTlsGetAddr

tools/modexec/modexec.cpp:126–145  ·  view source on GitHub ↗

Redirect libkernel's __tls_get_addr (NID vNe1w4diLCs) to our host HLE. Found by NID so it's firmware-independent. libkernel's own dynamic-TLS allocator leaves DTV entries null, so general-dynamic __thread access faults; ours hands back a real per-module block. Overwrites the entry with `movabs rax, &fn; jmp rax`.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls 3

protectMemFunction · 0.85
getModuleMethod · 0.80
getSymbolByNidMethod · 0.80

Tested by

no test coverage detected