• 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: dlopen and RTLD_LOCAL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dlopen and RTLD_LOCAL


  • Subject: Re: dlopen and RTLD_LOCAL
  • From: "Peter O'Gorman" <email@hidden>
  • Date: Thu, 16 Mar 2006 08:09:56 +0900

On Wed, 2006-03-15 at 13:36 -0500, Lyndsey D. Ferguson wrote:

>
> dlcompat: unable to open this file with RTLD_LOCAL.
>

You can not load files of type MH_DYLIB RTLT_LOCAL on darwin7 or
earlier, there is no API to do so.

> My searching on the internet and this list seemed to indicate that I
> should compile with the "-bundle" c flag, but that doesn't change
> anything.
>

This is not true. If you link your output using -bundle instead of
-dynamiclib, you'll get an output file of type MH_BUNDLE, which can be
loaded locally. I think you're still getting dynamic libs when you truy
this.

Apple rewrote the dynamic linker with 10.4 and integrated dlopen() and
made it more standards compliant in places, one of these places is the
ability to dlopen dynamic shared libraries and all their dependencies
RTLD_LOCAL.

Peter

Attachment: signature.asc
Description: This is a digitally signed message part

 _______________________________________________
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: dlopen and RTLD_LOCAL
      • From: j o a r <email@hidden>
References: 
 >dlopen and RTLD_LOCAL (From: "Lyndsey D. Ferguson" <email@hidden>)

  • Prev by Date: Re: viewing pages in documentation
  • Next by Date: Re: dlopen and RTLD_LOCAL
  • Previous by thread: Re: dlopen and RTLD_LOCAL
  • Next by thread: Re: dlopen and RTLD_LOCAL
  • Index(es):
    • Date
    • Thread