diff options
author | Roland McGrath <roland@gnu.org> | 2013-10-09 18:02:48 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2013-10-09 18:02:48 +0000 |
commit | 19b8163ec59427a05045a363a816c2ad74f95618 (patch) | |
tree | 3dace5fee1b35116c48314a15ffda9d77465550e /bfd | |
parent | 64a88fefce537a75a9c141d4b6c66a649fb283b6 (diff) | |
download | gdb-19b8163ec59427a05045a363a816c2ad74f95618.tar.gz |
bfd/
* xcofflink.c (_bfd_xcoff_bfd_final_link): Don't touch EREL in
loop that doesn't use (or initialize) it.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 3 | ||||
-rw-r--r-- | bfd/xcofflink.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 25f4cee9a42..fc19cc9498d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +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. + * elfxx-tilegx.c (tilegx32_plt_tail_entry, tilegx32_plt_tail_entry): Move second const qualifier so it applies to the pointer. diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c index e769e035359..d0bfd297391 100644 --- a/bfd/xcofflink.c +++ b/bfd/xcofflink.c @@ -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) { |