Re: How do I prevent a function from being optimized out?
Re: How do I prevent a function from being optimized out?
- Subject: Re: How do I prevent a function from being optimized out?
- From: Brian Dantes <email@hidden>
- Date: Wed, 13 Apr 2005 15:36:09 -0700
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 <email@hidden>
> Date: Wed, 13 Apr 2005 18:31:17 -0400 (EDT)
> To: Brian Dantes <email@hidden>
> Cc: <email@hidden>
> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden