Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
897 stars 200 forks source link

Should binding stubs exist in `view-macho` or in `platform-mac`? #4049

Open rickmark opened 1 year ago

rickmark commented 1 year ago

So now that mach-o is OSS, a feature that should be built is the parsing of stubs to their symbolic name. The stubs section starts with a generic "thunk" and each successive function is a stub function, followed by an immediate constant value which is the index into the DYLD Tries that binds the symbol. By iterating over each stub/thunk we can correctly name these functions as __stub_binder_thunk$LIBRARY$SYMBOL

plafosse commented 7 months ago

111 Ideally we'd handle that with a generic approach but until that point we could handle this in the view.