Need to gain access to unexported symbols
Need to gain access to unexported symbols
- Subject: Need to gain access to unexported symbols
- From: Platon Fomichev <email@hidden>
- Date: Tue, 13 Jul 2010 20:09:04 +0400
Good day, everyone
Our team is porting OpenBSD PF filter to OS X and the progress so far
is good. However we're battling with lots of 'hidden' symbols we need
access to. Yes we know this is kernel tied stuff, but the project is
supposed to be kernel-tied as closely as possible, so this is OK. We
need access to some functions like in_pcblookup* funcs and some
primitive ones like _boottime_sec().
The question is simple - we can't link against these functions like
_boottime_sec() because they are not exported from Kernel and kextload
complains. Can you suggest me the way to workaround this - I just
always can't copy-paste parts of the kernel (like I do now!) to
implement some funcs. Yes, I understand this is hack, but for now we
need a prototype to show to the customer - if it will be successfull I
hope they will try to push Apple to help us, but without workaround my
hands are tight.
Let's start with simple - very simple func _boottime_sec() - it's not
exported - how can I still link with it?
Thanks in advance.
Platon Fomichev
_______________________________________________
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