This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: recent binutils and mips64-linux
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- To: Eric Christopher <echristo at redhat dot com>
- Cc: Richard Sandiford <rsandifo at redhat dot com>, cgd at broadcom dot com, binutils at sources dot redhat dot com
- Date: Thu, 2 Oct 2003 20:42:21 +0200 (MET DST)
- Subject: Re: recent binutils and mips64-linux
- Organization: Technical University of Gdansk
On Thu, 2 Oct 2003, Eric Christopher wrote:
> > Actually the best solution might be using ELF32 (possibly n32) for the
> > output format, which automatically guarantees a 32-bit address space, but
> > use an n64 setup for the gcc's code generator. This way no change is
> > needed to binutils at all.
>
> n32 is ELF64, but marking the binaries with an arbitrary section might
> not be bad.
Hmm, has it changed recently?
$ echo | mips64el-linux-as -v -n32 -o null.o -
GNU assembler version 2.14 (mips64el-linux) using BFD version 2.14 20030612
$ file null.o
null.o: ELF 32-bit N32 LSB MIPS-III relocatable, MIPS, version 1 (SYSV), not stripped
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +