• 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: Crash in code linked with ld64 but not if linked with ld_classic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash in code linked with ld64 but not if linked with ld_classic


  • Subject: Re: Crash in code linked with ld64 but not if linked with ld_classic
  • From: Jonas Maebe <email@hidden>
  • Date: Wed, 7 Nov 2007 11:31:45 +0100


On 07 Nov 2007, at 04:29, Andrew Kimpton wrote:

As I noted the same code built with Xcode 2.5 on leopard works fine. *OR* if I change the symlinks in /Developer/usr/bin so that ld -> ld_classic and use Xcode 3 the binary works fine.

Any ideas what could be going wrong here ?

There is a bug in ld64 which causes it to generate wrong relations in some case for jump table instructions like this (on i386):


jmp .Ljumptable-40(êx)

(there has to be both a symbol and an offset for this to happen --not necessarily -40 and êx though--, and it does not happen in a simple test program). gcc (almost?) never generates such instructions, but our compiler does and resulting programs also crash. One of our users with seed access filed a radar about this, but only quite late in Leopard's development cycle, so it may not be fixed in the final release (I'm waiting for my new MacBook to arrive before I can test).

Of course, your crash may be caused by something entirely different as well...


Jonas _______________________________________________ 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: 
 >Crash in code linked with ld64 but not if linked with ld_classic (From: Andrew Kimpton <email@hidden>)

  • Prev by Date: Re: Private (embedded) Framework Interdependency
  • Next by Date: Xcode 3.0 stalls
  • Previous by thread: Crash in code linked with ld64 but not if linked with ld_classic
  • Next by thread: Re: Crash in code linked with ld64 but not if linked with ld_classic
  • Index(es):
    • Date
    • Thread