Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dlsym(...) and Intel Macs



On 17 Jul, 2006, at 11:33 PM, Jordan K. Hubbard wrote:
Wouldn't dlopen() be the first thing to fail if the bundle wasn't of the appropriate architecture? I assume Damien is also properly checking the value of mainHandle against NULL when it's returned...

Yes, there is a NULL check in place for `dlopen(...)'. The bundle executes just fine until it has to grab that symbol. And no, the underscore rules have not changed as far as I know. The actual symbol has an extra underscore added upon export, but `dlsym(...)' takes the name of the symbol without the underscore prefix for an argument. Besides, the symbol shows up just fine with `nm'.


I'm wondering if an `nlist(...)' call might do the trick.
--

Damien Sorresso

Mac OS X Developer
Computer Infrastructure Support Services
Illinois State University
E-mail: email@hidden


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >dlsym(...) and Intel Macs (From: Damien Sorresso <email@hidden>)
 >Re: dlsym(...) and Intel Macs (From: Eric Albert <email@hidden>)
 >Re: dlsym(...) and Intel Macs (From: "Jordan K. Hubbard" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.