aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2012-05-07 05:44:35 +0000
committerHans-Peter Nilsson <hp@axis.com>2012-05-07 05:44:35 +0000
commita134cc9b6ce1e678f2c34f4b2d88933854506fdf (patch)
tree4e69a3c0d1636eed1ff69eeb0e91a46043800310 /bfd
parent545fd46b6bb24535905e4bc69b91537fee065bf3 (diff)
downloadgdb-a134cc9b6ce1e678f2c34f4b2d88933854506fdf.zip
gdb-a134cc9b6ce1e678f2c34f4b2d88933854506fdf.tar.gz
gdb-a134cc9b6ce1e678f2c34f4b2d88933854506fdf.tar.bz2
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use
local variable i_ instead of assuming and using a variable i.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf-bfd.h7
2 files changed, 9 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7eedaae..455a124 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-07 Hans-Peter Nilsson <hp@axis.com>
+
+ * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use
+ local variable i_ instead of assuming and using a variable i.
+
2012-05-07 Maciej W. Rozycki <macro@linux-mips.org>
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Handle compound
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index a016d47..5af46dc 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -2411,6 +2411,7 @@ extern asection _bfd_elf_large_com_section;
rel, count, relend, \
howto, index, contents) \
{ \
+ int i_; \
_bfd_clear_contents (howto, input_bfd, input_section, \
contents + rel[index].r_offset); \
\
@@ -2440,10 +2441,10 @@ extern asection _bfd_elf_large_com_section;
} \
} \
\
- for (i = 0; i < count; i++) \
+ for (i_ = 0; i_ < count; i_++) \
{ \
- rel[i].r_info = 0; \
- rel[i].r_addend = 0; \
+ rel[i_].r_info = 0; \
+ rel[i_].r_addend = 0; \
} \
rel += count - 1; \
continue; \