dyld not binding correctly?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=DaGCygc4sMpRFk4i6t/ykk/j5y8LdLd94M1MQw/M3UOxjihgzKB5p6G1693gx3FO3HNSuBQGuy3iL5kevHU5cVsTN685WcBkmxlyjoS2dbZd9h/kkPciwU547Lm5xV5yUOOQMXxXBqMsoozuCGN5lY0U0bn12MW3DN/HImOrIKY= 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Nick Forte