This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can we have elf64_sparc on sparc-*-linux-gnu*?


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)
___________________________________________________________________

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]