• 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: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4?


  • Subject: Re: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4?
  • From: "Peter O'Gorman" <email@hidden>
  • Date: Tue, 07 Feb 2006 21:46:32 +0900

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gen Kiyooka wrote:
|
| Good question.  Since you're an ex-Codewarrior man, I wrote my samples
| with CodeWarrior 8.  It's using pragmas which may be CW specific.
| I think I discovered the hook/entry points while browsing the sources
| for dyld.
| Either that or spelunking in MSL.
|
| Here's the code snippet:
|
| #pragma export off
|
| extern void module_bind(void);
| #pragma CALL_ON_MODULE_BIND module_bind

[snip]

I'm not entirely sure what you're trying to prove here. #pragma CALL_ON_LOAD
et.al. are deprecated on Mac OS X 10.4, in favor of gcc's
__attribute__((constructor)) and __attribute__((destructor))
<http://developer.apple.com/releasenotes/DeveloperTools/dyld.html>.

C++ constructors and destructors work better in 10.4, and the problems with
c++ on 10.3.x and earlier were, I believe, one of the main reasons for the
rewrite of dyld.

Peter

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iQCVAwUBQ+iWqLiDAg3OZTLPAQId9gQApKKn+Aw9dR2fO2HdnFt4cGNqmnX263aa
EXrgZ4YubatNdUC/QUivhbRG6nUEB+ptD5UIWZmnhbh5QKmoDnzsqmdcmlN1x8Ec
y1+Z9ruH5EWonTKM6Z5eXLVbaXvNWRbsFjJNvFcOOKPgdwtYnegwLeIc1fT9ma1f
urc9+2YNouM=
=Aogy
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4?
      • From: Gen Kiyooka <email@hidden>
References: 
 >Re: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4? (From: "John C. Daub" <email@hidden>)
 >Re: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4? (From: Gen Kiyooka <email@hidden>)

  • Prev by Date: Re: Upgrade Error: Xcode 2.2 & GCC 4.0.1
  • Next by Date: isysroot and universal questions
  • Previous by thread: Re: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4?
  • Next by thread: Re: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4?
  • Index(es):
    • Date
    • Thread