This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: recent binutils and mips64-linux
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- Cc: Richard Sandiford <rsandifo at redhat dot com>,Eric Christopher <echristo at redhat dot com>, cgd at broadcom dot com,binutils at sources dot redhat dot com
- Date: Thu, 2 Oct 2003 14:45:21 -0400
- Subject: Re: recent binutils and mips64-linux
- References: <wvn1xu6r3k3.fsf@talisman.cambridge.redhat.com> <Pine.GSO.3.96.1031002200639.15189G-100000@delta.ds2.pg.gda.pl>
On Thu, Oct 02, 2003 at 08:14:15PM +0200, Maciej W. Rozycki wrote:
> On 24 Sep 2003, Richard Sandiford wrote:
>
> > Right. Have I understood correctly, and that all we want is a way to
> > generate n64 code in which symbols are known to have 32-bit values?
> > If so, it should just be a case of disabling:
> >
> > /* -mexplicit-relocs doesn't yet support non-PIC n64. We don't know
> > how to generate %highest/%higher/%hi/%lo sequences. */
> > if (mips_abi == ABI_64 && !TARGET_ABICALLS)
> > {
> > if ((target_flags_explicit & target_flags & MASK_EXPLICIT_RELOCS) != 0)
> > sorry ("non-PIC n64 with explicit relocations");
> > target_flags &= ~MASK_EXPLICIT_RELOCS;
> > }
> >
> > when this new command-line flag is passed. We'll then generate the
> > normal %hi/%lo sequences instead of dla. I'll drum up a patch.
>
> Note that the resulting object file should be somehow marked to let a
> user know it has some addressing restrictions and cannot be linked at an
> arbitrary address.
>
> 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.
This makes GDB extremely unhappy. Probably other tools too. Please
leave the ABI markings to represent the calling conventions used by the
program, instead of overloading them for this.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer