Mailing Lists: Apple Mailing Lists

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

Re: perl DynaLoader.a exports dlclose and dlsym.



On Wednesday, June 18, 2003, at 11:41 PM, Daniel Dvorkin wrote:

Dumb question: is there a drop-in patched version for dl_dyld.xs available somewhere?

... I'm not quite sure if I understand all the changes it's making when I look at the existing dl_dyld.xs. (I'm a newbie, sorry.) Thanks!

I am similarly unsure of exactly what you want to do :)

However, I'll make some assumptions and propose this solution:
1) Make a copy of /System/Library/Perl/darwin/auto/DynaLoader/DynaLoader.a somewhere.
2) Edit your makefiles so that they link against this copy.
3) make a file (call it something like rmsym.txt) with two lines. "_dlclose" on one and "_dlsym" on the other.
4) run nmedit -R rmsym.txt /path/to/your/special/DynaLoader.a
5) make

You may have to run ranlib once or twice in there on your DynaLoader.a copy.

(of course, if you are just doing this for yourself, you could run nmedit on the system DynaLoader.a, but I suggest you don't)

Hope this helps,
Peter
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



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.