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: Tue, 15 Jul 2003 13:32:36 +0930
User-agent: Mutt/1.4i

On Tue, Jul 15, 2003 at 11:08:48AM +0900, Miles Bader wrote:
> I tried this and it fixed my problem!  I also recompiled the entire
> linux kernel using the fixed gas, and compared disassemblies, and there
> seem to be no regressions caused by this change (I think linux is a

Good enough for me.  The testsuite still passes too.  Applying mainline.

        * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
        only for V850_OPERAND_DISP operands.

Index: gas/config/tc-v850.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-v850.c,v
retrieving revision 1.34
diff -u -p -r1.34 tc-v850.c
--- gas/config/tc-v850.c        24 Jun 2003 11:10:47 -0000      1.34
+++ gas/config/tc-v850.c        15 Jul 2003 03:55:03 -0000
@@ -2216,7 +2216,7 @@ md_assemble (str)
          fix_new_exp (frag_now,
                       f - frag_now->fr_literal, 4,
                       & fixups[i].exp,
-                      1 /* FIXME: V850_OPERAND_RELATIVE ???  */,
+                      (operand->flags & V850_OPERAND_DISP) != 0,
                       (bfd_reloc_code_real_type) (fixups[i].opindex
                                                   + (int) BFD_RELOC_UNUSED));
        }

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre




reply via email to

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