dyld not binding correctly?
dyld not binding correctly?
- Subject: dyld not binding correctly?
- From: "Nick Forte" <email@hidden>
- Date: Fri, 7 Jul 2006 17:42:40 -0700
I'm working on a Safari plugin that loads dylib's with dlopen. The
plugin does the following:
void *plib = dlopen( "OLDLIB.dylib", RTLD_LOCAL );
and then later I want to load a new library that has some of the same
symbol names but different functionality:
void *plib = dlopen( "NEWLIB.dylib", RTLD_LOCAL );
when I set DYLD_PRINT_BINDINGS dyld is binding symbols from OLDLIB.dylib:
dyld: loaded: /Users/me/Application Support//Updater/NEWLIB.dylib,
cpu-sub-type: 3
dyld: bind: NEWLIB.dylib:0x0f105148 = OLDLIB.dylib:__ZTI8VUpdater,
*0x0f105148 = 0x0d260dc0
dyld: bind: NEWLIB.dylib:0x0f105108 =
OLDLIB.dylib:__ZTI17VTransferListener, *0x0f105108 = 0x0d260600
dyld: bind: NEWLIB.dylib:0x0f1050a8 =
OLDLIB.dylib:__ZTI17VTransferListener, *0x0f1050a8 = 0x0d260600
dyld: bind: NEWLIB.dylib:0x0f105080 =
OLDLIB.dylib:__ZTV17VTransferListener, *0x0f105080 = 0x0d2606a0 + 12
dyld: bind: NEWLIB.dylib:0x0f105064 = OLDLIB.dylib:__ZTS7VObject,
*0x0f105064 = 0x0d216396
Running 'otool -h' on both libraries shows that twolevel_namespace is
enabled. I also see the above symbols are indeed in NEWLIB.dylib.
Anyone have any ideas why the binding is incorrect?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden