This is the mail archive of the binutils@sources.redhat.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]
Other format: [Raw text]

RE: as.exe 2.14 -mips3 with -n32 option gives Invalid bfd target


thanks,
i changed bfd/config.bfd and got the correct result


and I think this is right since for vxworks/rtem/elf it should support all
ABI
since you have no idea how the os may be compiled (it is shipped with as one
typically
may be rebuilt by some customers) so it should support all ABI
and certainly mips*-*-none should support all ABI as well.

$ diff -c config.bfd@@/main/LATEST config.bfd
*** config.bfd@@/main/LATEST    Mon Jun 30 11:54:20 2003
--- config.bfd  Wed Aug 20 09:48:46 2003
***************
*** 779,785 ****
      ;;
    mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks*)
      targ_defvec=bfd_elf32_bigmips_vec
!     targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec
bfd_elf64_lit
tlemips_vec"
      ;;
    mips*-*-none)
      targ_defvec=bfd_elf32_bigmips_vec
--- 779,785 ----
      ;;
    mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks*)
      targ_defvec=bfd_elf32_bigmips_vec
!     targ_selvecs="bfd_elf32_nbigmips_vec bfd_elf32_littlemips_vec
bfd_elf32_nl
ittlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
      ;;
    mips*-*-none)
      targ_defvec=bfd_elf32_bigmips_vec

-----Original Message-----
From: Ian Lance Taylor [mailto:ian@airs.com]
Sent: Saturday, August 16, 2003 1:18 AM
To: Ken Faiczak
Cc: 'binutils@sources.redhat.com'
Subject: Re: as.exe 2.14 -mips3 with -n32 option gives Invalid bfd
target


Ken Faiczak <kfaiczak@sandvine.com> writes:

> seems the target for -32
> ie elf32-bigmips
> and for n32 is elf32-nbigmips which is not found
> 
> not sure how these are 
> generated  I assume SELECT_VECS is generated by the configure
> since otherwise I'd get them all..
> not sure where to change it yet but its in here somewhere

Hmmm, looks like you need to configure with
    --enable-targets=mips-sgi-irix6
or
    --enable-targets=mips-unknown-linux
in order to get -n32 support.

There is certainly a bug here.  Either the assembler should reject
-n32 with some coherent error message, or BFD for MIPS targets should
include support for the N32 MIPS targets by default.

Incidentally, there seems to be some duplication between elf32-mips.c
and elfn32-mips.c, which looks to me like a bad idea.  It's fairly
unlikely that any bug fixes would be made in both places.

Ian


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