bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: offset calculation bug(?) in GNU as 2.13.2.1 for v850e


From: Alan Modra
Subject: Re: offset calculation bug(?) in GNU as 2.13.2.1 for v850e
Date: Mon, 14 Jul 2003 23:06:32 +0930
User-agent: Mutt/1.4i

On Mon, Jul 14, 2003 at 10:14:05PM +0930, Alan Modra wrote:
>         fix_new_exp (frag_now,
>                      f - frag_now->fr_literal, 4,
>                      & fixups[i].exp,
>                      1 /* FIXME: V850_OPERAND_RELATIVE ???  */,
>                      (bfd_reloc_code_real_type) (fixups[i].opindex
>                                                  + (int) BFD_RELOC_UNUSED));
> 
> As it is the code is fairly obviously wrong for the testcase.  I'm not
> familiar enough with v850 assembly to know whether replacing the 1 with
> a 0 is correct, but that would be my guess.

No, that breaks branches.  Try

(operand->flags & V850_OPERAND_DISP) != 0

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre




reply via email to

[Prev in Thread] Current Thread [Next in Thread]