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: Symbol Sharing between Dylibs (and how to prevent it)



On 8/31/06, Chris Espinosa <email@hidden> wrote:

This is because dylibs default to global namespace and bundles (and plugins) default to "two-level namespace." You can easily set any dylib to two-level namespace

In my original reply, I noted that I have this option turned on already. In fact, our compiler specifically checks for this attribute, otherwise plugins wouldn't have worked at all. However, the symbols that dyld automatically resolved didn't seem to respect which image the requester was in. Our call to NSLookupSymbolInImage resolved the correct symbol -- before enabling two-level namespaces several years ago, this wouldn't work because a REALPluginMain entrypoint had already been introduced in the global namespace.

From everything I tried, the only solution that worked was using a
Bundle rather than a dynamic library.

-Jon


-- Jonathan Johnson REAL Software, Inc. _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Symbol Sharing between Dylibs (and how to prevent it) (From: "Jonathan Johnson" <email@hidden>)
 >Re: Symbol Sharing between Dylibs (and how to prevent it) (From: "Jonathan Johnson" <email@hidden>)
 >Re: Symbol Sharing between Dylibs (and how to prevent it) (From: Chris Espinosa <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.