public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Can we have elf64_sparc on sparc-*-linux-gnu*?
@ 1999-12-09 10:51 Alexandre Oliva
  1999-12-09 12:50 ` Jakub Jelinek
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Oliva @ 1999-12-09 10:51 UTC (permalink / raw)
  To: binutils

If I build binutils with sparc64-*-linux-gnu*, it will produce 64bit
code by default, and gcc will only tell ld to generate elf32_sparc; no
-32 flag is passed to gas, so it will generate elf64_sparc object
files, and ld will complain about them.

But if I build with sparc-*-linux-gnu* (i.e., s/sparc64/sparc/),
elf64_sparc won't be enabled at all.  Can't we enable it as an
alternative in this case?

The attached patch is supposed to accomplish this:

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can we have elf64_sparc on sparc-*-linux-gnu*?
  1999-12-09 10:51 Can we have elf64_sparc on sparc-*-linux-gnu*? Alexandre Oliva
@ 1999-12-09 12:50 ` Jakub Jelinek
  1999-12-11 15:03   ` Alexandre Oliva
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Jelinek @ 1999-12-09 12:50 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: binutils

On Thu, Dec 09, 1999 at 04:51:15PM -0200, Alexandre Oliva wrote:
> If I build binutils with sparc64-*-linux-gnu*, it will produce 64bit
> code by default, and gcc will only tell ld to generate elf32_sparc; no
> -32 flag is passed to gas, so it will generate elf64_sparc object
> files, and ld will complain about them.

Strange. gcc should always pass -32/-64 flags to gas, at least if you don't
use ancient version. I've just checked egcs 1.1.2 in rh6.1 and it has -32
and -m elf32_sparc everywhere in the specs.

> 
> But if I build with sparc-*-linux-gnu* (i.e., s/sparc64/sparc/),
> elf64_sparc won't be enabled at all.  Can't we enable it as an
> alternative in this case?

I haven't done it because I thought there are people which might only use it
on sparc32 boxes and if binutils support elf64_sparc, then everything is
done in long long. Plus gcc 2.7.2.x on sparc miscompiles it.
We've been using so far
./configure sparc-redhat-linux --enable-targets=sparc64-linux otheroptions 
in Red Hat spec files for binutils, but I have nothing against enabling it
for everybody in config scripts.

Cheers,
    Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.26 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can we have elf64_sparc on sparc-*-linux-gnu*?
  1999-12-09 12:50 ` Jakub Jelinek
@ 1999-12-11 15:03   ` Alexandre Oliva
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Oliva @ 1999-12-11 15:03 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: binutils

On Dec  9, 1999, Jakub Jelinek <jakub@redhat.com> wrote:

> On Thu, Dec 09, 1999 at 04:51:15PM -0200, Alexandre Oliva wrote:
>> If I build binutils with sparc64-*-linux-gnu*, it will produce 64bit
>> code by default, and gcc will only tell ld to generate elf32_sparc; no
>> -32 flag is passed to gas, so it will generate elf64_sparc object
>> files, and ld will complain about them.

> Strange. gcc should always pass -32/-64 flags to gas, at least if you don't
> use ancient version. I've just checked egcs 1.1.2 in rh6.1 and it has -32
> and -m elf32_sparc everywhere in the specs.

This must be a RH hack, that was never contributed to gcc, which was
probably deemed necessary because you ship RH6.1 with a 32/64
binutils.  GCC up to the current CVS version only passes -m
elf32_sparc to the linker, but not -32 to the assembler.

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-12-11 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-09 10:51 Can we have elf64_sparc on sparc-*-linux-gnu*? Alexandre Oliva
1999-12-09 12:50 ` Jakub Jelinek
1999-12-11 15:03   ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).