This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: .xword crashes gas on sparc
- To: binutils at sourceware dot cygnus dot com
- Subject: Re: .xword crashes gas on sparc
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 03 Dec 1999 04:57:57 -0200
- References: <or903hcdy2.fsf@cupuacu.lsd.ic.unicamp.br>
On Nov 29, 1999, Alexandre Oliva <oliva@lsd.ic.unicamp.br> wrote:
> echo '.xword foo' | /n/gnu/bin/as -
> {standard input}: Assembler messages:
> {standard input}:1: Fatal error: {standard input}:1: bad return from bfd_install_relocation
As others have said, this is caused by the fact that -64 was not
given. Unfortunately, on sparc-*-solaris*, when -64 is given, gas
just says 64bit support is not enabled.
Since the native toolchain of Solaris7 does support 64 bits by
default, I think so should ours. Here's a patch:
Index: bfd/ChangeLog
from Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* config.bfd: Enable 64 bit support for Solaris7+/sparc.
Index: bfd/config.bfd
===================================================================
RCS file: /cvs/binutils/binutils/bfd/config.bfd,v
retrieving revision 1.13
diff -u -r1.13 config.bfd
--- bfd/config.bfd 1999/09/28 21:45:39 1.13
+++ bfd/config.bfd 1999/12/03 06:34:58
@@ -647,10 +647,16 @@
targ_defvec=sparcnetbsd_vec
targ_underscore=yes
;;
- sparc-*-elf* | sparc-*-solaris2*)
+ sparc-*-elf* | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
targ_defvec=bfd_elf32_sparc_vec
targ_selvecs=sunos_big_vec
;;
+#ifdef BFD64
+ sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
+ targ_defvec=bfd_elf32_sparc_vec
+ targ_selvecs="bfd_elf64_sparc_vec sunos_big_vec"
+ ;;
+#endif
sparc-*-sysv4*)
targ_defvec=bfd_elf32_sparc_vec
;;
--
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