• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with ld --wrap, Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with ld --wrap, Help


  • Subject: Re: Problem with ld --wrap, Help
  • From: Peter Mulholland <email@hidden>
  • Date: Tue, 23 Oct 2007 20:02:36 +0100

Hello F,

Tuesday, October 23, 2007, 7:27:59 PM, you wrote:

> Hi,

> I'm trying to wrap mallocs (ld --wrap,malloc). With this option, the
> linker is informed that some methods like malloc() (or others) must
> be caught
> and that user defined methods  are called instead (which will
> eventually call malloc() but adding some user code like printf())

> The problem also arose with cygwin:
> http://www.cygwin.com/ml/binutils/
> 2000-09/msg00083.html

> It seems that the XCode version of the linker does not support the --
> wrap option. It is not even documented in the Apple ld man pages
> (compared to Linux man pages).

> Does anyone has a solution? (I still have to try with the fink ports
> of gcc/ld)

Apple's ld is not GNU ld, as Cygwin and Linux are.

The fink port of ld will not link Mach-O object code.

Why do you need this feature?

--
Best regards,
 Peter                            mailto:email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Problem with ld --wrap, Help (From: F L <email@hidden>)

  • Prev by Date: Problem with ld --wrap, Help
  • Next by Date: Weak link
  • Previous by thread: Problem with ld --wrap, Help
  • Next by thread: Re: Problem with ld --wrap, Help
  • Index(es):
    • Date
    • Thread