• 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: Loading function from a bundle without loading all globals.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading function from a bundle without loading all globals.


  • Subject: Re: Loading function from a bundle without loading all globals.
  • From: Michael Siek <email@hidden>
  • Date: Fri, 14 Dec 2007 08:33:39 +0100 (CET)
  • Organization: comosoft AG

On Dec 13, 2007 06:15 PM, Peter O'Gorman <email@hidden> wrote:

> Michael Siek wrote:
> > On Dec 13, 2007 04:49 PM, Peter O'Gorman <email@hidden> wrote:
>
> >>> Any hint is appreciated!
> >> 1) dlopen with RTLD_PRIVATE, and dlsym should work on 10.4 and
> >> later.
> >>
> >> 2) If it is your own framework, then use -exported_symbols_list
> >> when
> >> linking it so that only the symbols you want to be global are.
> >>
>
> >
> > 2) is not an option as it is not my own framework. The problem is
> > probably inside a second 3rd party framework (or library) that is
> > loaded
> > by the first 3rd party framework.
>
> Ok, then you're left with dlopen RTLD_PRIVATE, which should open the
> framework and everything the framework uses privately. dlsym will look
> up symbols in the framework and everything it uses.
>
> This will not work on 10.3 though, dlopen on 10.3 is less capable, it
> will only load files of type MH_BUNDLE privately, any secondary libs
> and
> frameworks that the bundle uses will be global.
>
> See the man pages for dlopen() and dlsym().
>
> Peter
> --
> Peter O'Gorman
> http://pogma.com

Hi Peter,
i modified my framework loading to work with dlopen/dlsym.
Unfortunately RTLD_PRIVATE is not supported in 10.4 or 10.5 SDK.
It looked so promising...
(I tried RTLD_LOCAL which delivers same result like CFBundle-stuff)

Regards,
Michael


 _______________________________________________
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: Loading function from a bundle without loading all globals.
      • From: Peter O'Gorman <email@hidden>
References: 
 >Loading function from a bundle without loading all globals. (From: Michael Siek <email@hidden>)
 >Re: Loading function from a bundle without loading all globals. (From: Peter O'Gorman <email@hidden>)
 >Re: Loading function from a bundle without loading all globals. (From: Michael Siek <email@hidden>)
 >Re: Loading function from a bundle without loading all globals. (From: Peter O'Gorman <email@hidden>)

  • Prev by Date: Re: 64 bit
  • Next by Date: Re: How to make a program look for dylibs other than /usr/local/lib?
  • Previous by thread: Re: Loading function from a bundle without loading all globals.
  • Next by thread: Re: Loading function from a bundle without loading all globals.
  • Index(es):
    • Date
    • Thread