]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd/
authorRoland McGrath <roland@gnu.org>
Wed, 9 Oct 2013 18:03:17 +0000 (18:03 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 9 Oct 2013 18:03:17 +0000 (18:03 +0000)
* xcofflink.c (_bfd_xcoff_bfd_final_link): Don't touch EREL in
loop that doesn't use (or initialize) it.

bfd/ChangeLog
bfd/xcofflink.c

index c1387746e89635b03ba23d6893720811f2e021ae..9401cd4830b55a3985e82bddfdc413bddc2f0eb2 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-09  Roland McGrath  <mcgrathr@google.com>
+
+       * xcofflink.c (_bfd_xcoff_bfd_final_link): Don't touch EREL in
+       loop that doesn't use (or initialize) it.
+
 2013-10-09  Roland McGrath  <mcgrathr@google.com>
 
        * elfxx-tilegx.c (tilegx32_plt_tail_entry, tilegx32_plt_tail_entry):
index e769e0353594b5932fbfc3a8060061609dedc176..d0bfd297391f1e08a84763307fa69fedcbe4c330 100644 (file)
@@ -1,6 +1,6 @@
 /* POWER/PowerPC XCOFF linker support.
    Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+   2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Free Software Foundation, Inc.
    Written by Ian Lance Taylor <ian@cygnus.com>, Cygnus Support.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -6261,7 +6261,7 @@ _bfd_xcoff_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
       irel = flinfo.section_info[o->target_index].relocs;
       irelend = irel + o->reloc_count;
       rel_hash = flinfo.section_info[o->target_index].rel_hashes;
-      for (; irel < irelend; irel++, rel_hash++, erel += relsz)
+      for (; irel < irelend; irel++, rel_hash++)
        {
          if (*rel_hash != NULL)
            {