Re: Crash in code linked with ld64 but not if linked with ld_classic
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