Re: Finding symbols in loaded kexts
Re: Finding symbols in loaded kexts
- Subject: Re: Finding symbols in loaded kexts
- From: Andrew Gallatin <email@hidden>
- Date: Mon, 6 Aug 2007 12:58:45 -0400 (EDT)
Dean Reece writes:
> If the symbol you want is not global (lower-case type specifier in
> the nm output), or has been stripped out of the target kext entirely,
> then there isn't really anything you can do.
If the symbol is not global, but still present, would it work to call
it via a function pointer initialized to the correct address? Eg,
does the "global" property mean anything once the module is relocated?
I vaguely remember a trick somebody here used to play with Linux.
There was some function that wasn't exported that his module needed to
call. So he had a wrapper script for his module that groveled around
in kernel memory to find the function, then passed its address to his
module, which used it in a function pointer. I don't remember if it
was global or non global though..
Drew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden