p-x9 / MachOKit

🔬 A Swift library for parsing MachO files to obtain various information.

Home Page:https://p-x9.github.io/MachOKit/documentation/machokit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[dyld cache] Support dylibs trie

p-x9 opened this issue · comments

commented

Dylibs trie is for searching by dylib name.
Aliases are also supported, with identical ones returning the same index.

This index matches the index in the dylib image list that can be retrieved from imagesOffset.

uint64_t    dylibsTrieAddr;         // (unslid) address of trie of indexes of all cached dylibs
uint64_t    dylibsTrieSize;         // size of trie of cached dylib paths

dylibsTrieAddr is set to 0 outside the main cache, but the actual content may exist in the sub-cache.