-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to obtain mach-O symbol stub information? #377
Comments
Object is an object file parsing crate. The mach-O files don't directly encode at which offset in the |
As stated in the link from bjorn3, you'll need to parse more load commands for this. It might also make sense to add a method to |
Thank you! It'll probably be a while before I'll have time to pursue this, but now I know where to start looking. |
BTW, it doesn't appear that |
I've made some progress on this now. Code is here: https://github.com/mstange/macho-stubs/blob/6dbb225e43002afe97a539682bbba731029c0fc9/src/main.rs#L140-L298 |
I'm trying to look up address 0x77d58 in the arm64 object in this libmozglue.dylib.
This address was sampled by a profiler. According to Hopper, it is inside a symbol stub for OSSpinLockUnlock:
Is there a way I can get the address and name for imp___stubs__OSSpinLockUnlock using object?
The text was updated successfully, but these errors were encountered: