• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can a dylib have an entry point?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Can a dylib have an entry point? (From: email@hidden)
 >Re: Can a dylib have an entry point? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Can a dylib have an entry point?
  • Next by Date: Re: Can a dylib have an entry point?
  • Previous by thread: Re: Can a dylib have an entry point?
  • Next by thread: Re: Can a dylib have an entry point?
  • Index(es):
    • Date
    • Thread