Re: Linking to standard libs in building a KEXT
You cannot link against userspace libraries in a kext. Some standard things are included in the kernel's c/c++ runtimes. Since your worried about name mangling I assume you want to link some c++ library in, and my guess would be in most cases you simply can't. There are situations where things like this can be done (the bootstrap kernel linker comes to mind) for simple code with dependencies on the userspace environment On Thursday, March 28, 2002, at 09:51 AM, Sean Morrell wrote: I would like to use some of the functions provided by the standard c or c++ library from a KEXT. Is this possible? For instance, I would like to use sin to debug some problems in my audio driver. Is the name mangling different when code is being compiled for a kernel module? Can I link against a dylib? What must be done to link against the standard libraries, if this is possible? Thanks, Sean _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored. _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Louis Gerbarg