This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: as.exe 2.14 -mips3 with -n32 option gives Invalid bfd target
- From: Ian Lance Taylor <ian at airs dot com>
- To: Ken Faiczak <kfaiczak at sandvine dot com>
- Cc: "'binutils at sources dot redhat dot com'" <binutils at sources dot redhat dot com>
- Date: 15 Aug 2003 22:18:20 -0700
- Subject: Re: as.exe 2.14 -mips3 with -n32 option gives Invalid bfd target
- References: <FE045D4D9F7AED4CBFF1B3B813C85337028572DC@mail.sandvine.com>
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