This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [committed] small one liner in gas


On Mon, Oct 04, 2004 at 04:25:06PM -0700, Eric Christopher wrote:
> Fixes a small bug Zack ran into with:
> 
> lw $3,%half($gp)
> 
> where he was getting an internal error in gas for this.
> 
> The fx_size was 4 because that's the size of the data worked on, not 2
> which is the size in the howto. Anyhow, instead of changing the assert
> to 4 I just removed it since none of the other relocations have asserts
> in them.

Waitasec...

> -      assert (fixP->fx_size == 2);
>        if (fixP->fx_done)
>  	md_number_to_chars (buf, *valP, 2);

Won't that get the wrong location for big-endian?  The code for LO16
has an endian correction.

[Zack, I think that doesn't matter for us, since the only place we'll
be generating %half fx_done won't get set.]

-- 
Daniel Jacobowitz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]