Re: how to tell which symbols are exported?
Re: how to tell which symbols are exported?
- Subject: Re: how to tell which symbols are exported?
- From: Dean Reece <email@hidden>
- Date: Fri, 8 Apr 2005 13:07:36 -0700
On Apr 8, 2005, at 12:39, Andrew Gallatin wrote:
I there a tool to get a list of all the symbols that each of the
loaded kernel extensions are exporting on a given system?
Only look at kexts with the OSBundleCompatibleVersion property -
those are the ones available as libraries.
Use the 'nm' command on the binary in the kext. All of the symbols
that are "upper case" types are globals involved in linking - the
non-"U" symbols are the ones exported by the kext. You can disregard
the '_' prefix on the symbols - it is an artifact of the way linkage
works.
Background: I'm sitting at a shell prompt, trying to kextload an
older kext on a newer system. A symbol required for the kext, call
it "foo", which used to be resolved by the dependancies listed in
the kext's Info.plist in an older version of MacOSX no longer seems
to be found by kextload. I know the symbols is still there, as nm /
mach_kernel shows it. Ideally, I'll be able to update Info.plist
with vi and go on my merry way..
Cheers,
- Dean
_______________________________________________
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