Re: __attribute__((constructor)) in dylib does not run with DYLD_INSERT_LIBRARIES
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Microsoft-Entourage/11.1.0.040913 On 28/2/05 11:58 pm, Brian Dantes <brian@things.org> wrote:
If this were a static library, you certainly would expect any static constructors to run that were defined in that library. The only difference in that scenario and this one is when the library is loaded into the image. I would hazard to say that Linux (and FreeBSD, HPUX, Solaris and other
It would be surprising if Linux behaved differently from FreeBSD and Solaris, because they all use ELF. Some versions of HP-UX use ELF too. So your "weight of numbers" is only really 1 :-(
variants I've directly tried this on) are correct and MacOS X is not.
I have submitted this as Radar bug report to Apple as well, so we'll see if anything comes of that.
Also check the archives of this list, as this subject has kind of come up before. (Mostly wrt C++ constructors, but it sounds like the same sort of thing.) Cheers, Chris _______________________________________________ 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: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Chris Ridd