gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sparc: ld: --relax and -r may not be used together


From: Riccardo Mottola
Subject: Re: sparc: ld: --relax and -r may not be used together
Date: Sun, 10 Apr 2011 10:36:22 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110402 Icedove/3.1.9

Hi Nicola,


I forgot to mention that I commited the patch, but then today I read your message later about gcc 4.6. Since the majority of people use x86 it is perhaps better to back it up? Or else, find a way for configure to detect and handle this.

Thanks,

Riccardo

Riccardo,

sorry that I had not replied to this - it looks good.

Of course, we now need testing with various compilers
on various platforms.  We switched from -r to -Wl,-r
to have it work properly on both GCC and clang.  Hopefully
-mno-relax works with clang too.

Thanks

-----Original Message-----
From: "Riccardo Mottola"<address@hidden>
Sent: Friday, 1 April, 2011 15:34
To: address@hidden
Subject: sparc: ld: --relax and -r may not be used together

Hi,

I get an error when building on NetBSD on sparc, namely:

ld: --relax and -r may not be used together


By looking around, I found this post:
http://hackage.haskell.org/trac/ghc/ticket/3791

we have exactly the same problem. Since it is SPARC specific it explains
why it doesn't fail elsewhere. I don't know why it does work on
OpenBSD/sparc, but perhaps the gcc defaults are different.

The only fix I came up with is to to modify target.make to add
-mno-relax at every -Wl,r occourence. On platforms different from SPARC
it should have no effect.

I propose the applied patch, i have not yet commited it. What do you think?

Riccardo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]