Re: Can a dylib have an entry point?
Re: Can a dylib have an entry point?
- Subject: Re: Can a dylib have an entry point?
- From: Shantonu Sen <email@hidden>
- Date: Tue, 18 Feb 2014 09:14:58 -0800
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 <email@hidden> 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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden