This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: MIPS %half in gas
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: binutils at sourceware dot org
- Date: Fri, 12 Oct 2007 17:06:38 +0100 (BST)
- Subject: Re: MIPS %half in gas
- References: <1096932306.3676.43.camel@localhost.localdomain> <20041005014927.GA26907@nevyn.them.org> <20071012154340.GC9046@caradoc.them.org>
On Fri, 12 Oct 2007, Daniel Jacobowitz wrote:
> A message from so long ago that almost none of the addresses are still
> valid... CC's trimmed :-)
Hmm, I find it nice to discover yet another MIPS relocation type/operator
I was not aware of. ;-) I can hardly see a use for this operator and I
have no idea as to where it is coming from, but your change looks
reasonable to me.
Though the test case may be confusing -- given the relocation operates on
an unsigned value, the use of "lw" in the test case is misleading. I
think "ori", "andi" or "xori" would be better. Although of these only
"ori" looks remotely useful and I am not sure if using this relocation on
code rather than data (".hword %half(foo)") makes sense at all.
Maciej