Re: dlopen and RTLD_LOCAL
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