Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dyld not binding correctly?



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.