Skip to main content

Module bind

Module bind 

Source
Expand description

Classic dyld bind opcodes (LC_DYLD_INFO / LC_DYLD_INFO_ONLY).

Interprets the non-lazy and lazy bind streams and writes resolved absolute pointers into guest memory (eager bind for Micro — no lazy stub helper). When an image has no bind opcodes, falls back to nlist → __got for the main executable (Phase 6 fixtures / tools without dyld info).

Structs§

BindResolveCache
Process-wide bind/chained resolve tables (built once per bind_process).
BindSite
One pointer write derived from a bind opcode stream.

Functions§

bind_process
Fill exports, then bind each mapped image.
collect_bind_sites
Collect POINTER bind sites from LC_DYLD_INFO / LC_DYLD_INFO_ONLY.
encode_pointer_bind
Encode a minimal non-lazy POINTER bind sequence (unit tests / opcode smoke).