facebook / fishhook

A library that enables dynamically rebinding symbols in Mach-O binaries running on iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support two-level namespace

kastiglione opened this issue · comments

After reviewing #31, it seems a piece of missing functionality in fishhook is support for mach-o two-level namespaces. When rebinding a symbol, the logic should check if a specific library has been recorded for that symbol, and if the symbol is bound to a library, then never rebind symbols that happen to be the same name but from other libraries. See <mach-o/nlist.h>.