aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
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/elf-bfd.h
parent545fd46b6bb24535905e4bc69b91537fee065bf3 (diff)
downloadbinutils-a134cc9b6ce1e678f2c34f4b2d88933854506fdf.zip
binutils-a134cc9b6ce1e678f2c34f4b2d88933854506fdf.tar.gz
binutils-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/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h7
1 files changed, 4 insertions, 3 deletions
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; \