This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [patch] MIPS gas problems with gcc's explicit relocs
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- To: Richard Sandiford <rsandifo at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 3 Jun 2004 19:06:51 +0200 (CEST)
- Subject: Re: [patch] MIPS gas problems with gcc's explicit relocs
- Organization: Technical University of Gdansk
- References: <Pine.LNX.4.55.0405281900120.7804@jurand.ds.pg.gda.pl><87smdj226x.fsf@redhat.com> <Pine.LNX.4.55.0405311258240.18445@jurand.ds.pg.gda.pl><873c5cvc1g.fsf@redhat.com>
On Thu, 3 Jun 2004, Richard Sandiford wrote:
> Sorry for the delay...
No problem.
> > Thus I suppose the SGI assembler supports such constructs, as:
> >
> > dla $2,%lo(foo)($3)
> >
> > As you seem to have an access to an Irix host, could you please verify it?
>
> The SGI assembler doesn't seem to like it:
>
> as: Error: /foo.s, line 1: cannot use % relocation in macro instruction
Hmm, interesting -- so they contradict their own specification. Perhaps
it was too tough for them to handle. ;-)
> Not that that's necessarily a reason for gas to reject it. (Like I say,
> I don't really have any opinion on that. I just wanted to respond to
> the SGI question.)
I find interpreting addresses universally in the same way consistent and
it makes the life easier for inline asm programmers.
Note I think we should get rid of the use of artificial BFD_RELOC_LO16
relocations regardless.
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +