DYLD_INSERT_LIBRARIES doesn't work with Leopard?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Does anything changed about dyld in Leopard? :| -- Regards, bejo _______________________________________________ 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... Hello, I'm trying to interpose system's open() function with my own using the dyld, I had no problem with that on Tiger, but the same code on Leopard doesn't work any longer. I compile my library this way: gcc -arch ppc -dynamiclib -fno-common -o open_interposer.dylib open_interposer.c and then I run my app this way: DYLD_INSERT_LIBRARIES=open_interposer.dylib DYLD_FORCE_FLAT_NAMESPACE=1 ./my_app and the application is still using system's open() function instead of mine :(. DYLD_PRINT_LIBRARIES=1 shows that pen_interposer.dylib is loaded before other libs. This email sent to site_archiver@lists.apple.com
participants (1)
-
Błażej Biesiada