Re: How do I prevent a function from being optimized out?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Microsoft-Entourage/10.1.4.030702.0 No, you do not need to force a flat namespace with mach_override, that's the beauty of it. It is a bit scary when you realize what it's doing - but hey you'll learn to live with it. ;-> Now, if you want to override something in a program you can't link against (ala the Linux LD_PRELOAD trick), you'll have to wait for Tiger to be able to do that. -Brian
From: Andrew Gallatin <gallatin@cs.duke.edu> Date: Wed, 13 Apr 2005 18:21:50 -0400 (EDT) To: Brian Dantes <brian@things.org> Cc: <darwin-dev@lists.apple.com> Subject: Re: How do I prevent a function from being optimized out?
Brian Dantes writes:
If you have control over the application, a much better solution is mach_override.
Actually, that is a good idea. I wasn't aware of this... All we really need to do is to call a function from deallocate_pages() with the address and the size. I suppose we would still need to force a flat namespace.
If I can't figure anything else out, I may try this. Testing a totally new way of doing this will not be fun though :(
Thanks a lot for the pointer!
Drew
_______________________________________________ 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)
-
Brian Dantes