Re: How do I prevent a function from being optimized out?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Jerry Pendergraft writes:
Seems like if you provide an object file to the link that provides the malloc() entry point (with proper signature), then the linker would never bother to search the standard lib for it. Of course gcc has its own ideas especially concering malloc ;^)
This is a library itself, and its highly likely somebody else has already called malloc. The first caller initiates the lazy binding search, and the linker pulls in the one from libc. 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)
-
Andrew Gallatin