How to manually register a symbol address in dyld?
How to manually register a symbol address in dyld?
- Subject: How to manually register a symbol address in dyld?
- From: Stéphane Corthésy <email@hidden>
- Date: Tue, 13 Oct 2009 09:55:31 +0200
Hello,
For some reason (that I'll explain later), I need to load a bundle
which contains symbols undefined in application libraries. BUT, though
these symbols are undefined, the actual implementations are present in
current runtime, but under a different symbol. Thus, before loading
that bundle I need to manually tell dyld that symbol
'my_renamed_function' should be bound to 'my_original_function'
already present in system libraries. Or I need a hook that would allow
me to do that while loading the bundle. I'm working on 10.6. I tried
to look at dyld source code, but got lost :-)
I tried to use NSInstallLinkEditErrorHandlers, but my handler wasn't
invoked.
So, is there a way to do that, and how?
Thanks for your enlightenments,
Stéphane
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden