Re: Loading function from a bundle without loading all globals.
Re: Loading function from a bundle without loading all globals.
- Subject: Re: Loading function from a bundle without loading all globals.
- From: Peter O'Gorman <email@hidden>
- Date: Fri, 14 Dec 2007 10:41:22 -0600
Michael Siek wrote:
> RTLD_PRIVATE exists...but Apple did not choose to provide it ;-)
>
> The producer of the framework in question obviously did not know the
> "-exported_symbols_list " option. They export everything.
> Probably several symbols would cause issues but new/delete are the ones i
> found by now.
Well, if it is a framework that you plan to provide in your app bundle,
then you can run nmedit or strip on it to reduce the number of global
symbols.
But, it seems likely that RTLD_LOCAL did not work because more than one
of the libraries/frameworks that are loaded as a result of your dlopen()
provide a global new and delete.
It all seems very icky.
Peter
--
Peter O'Gorman
http://pogma.com
_______________________________________________
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