Re: Can a dylib have an entry point?
that’s an initializer function(s), which are run when dyld loads the library. However the kernel will never execve(2) a Mach-O file of dylib type, so the usage describe is not possible. Shantonu On Feb 18, 2014, at 9:00 AM, Jens Alfke <jens@mooseyard.com> wrote:
I'm pretty sure it can, since there are language facilities for making functions run when the code is loaded — Clang and GCC's C compilers have __attribute((constructor)), and C++ of course has static initializers.
—Jens _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-dev/ssen%40apple.com
This email sent to ssen@apple.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app... This email sent to site_archiver@lists.apple.com
participants (1)
-
Shantonu Sen