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 Read the stuff about mach_override. It's not replacing the symbol - it's actually patching the actual malloc call in libc *on the fly*. -Brian
From: Andrew Gallatin <gallatin@cs.duke.edu> Date: Wed, 13 Apr 2005 18:31:17 -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:
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
Wait, how can that work?
Are you saying that even though there are multiple namespaces, the "different" malloc functions wind up at the same address, or do you have to do the override in each namespace?
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