aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorMatthew Fortune <matthew.fortune@imgtec.com>2014-11-04 23:40:22 +0000
committerMatthew Fortune <matthew.fortune@imgtec.com>2014-11-04 23:45:26 +0000
commitdf97ab2af780b9588a7158c61b6fdd25577b1c68 (patch)
treea58f3873ec5afc544e646165e97f8207b333af5f /binutils
parent0b58352d4301958fc1b88bbe014e9f5af09c7f3d (diff)
downloadgdb-df97ab2af780b9588a7158c61b6fdd25577b1c68.zip
gdb-df97ab2af780b9588a7158c61b6fdd25577b1c68.tar.gz
gdb-df97ab2af780b9588a7158c61b6fdd25577b1c68.tar.bz2
Fix -Wshadow warning
binutils/ * readelf.c (process_mips_specific): Rename index to idx.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/readelf.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index f3c7196..d071381 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-04 Matthew Fortune <matthew.fortune@imgtec.com>
+
+ * readelf.c (process_mips_specific): Rename index to idx.
+
2014-11-04 Nick Clifton <nickc@redhat.com>
PR binutils/17531
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 03c2c5c..7c0c3ff 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -13579,16 +13579,16 @@ process_mips_specific (FILE * file)
sym_width = (is_32bit_elf ? 80 : 160) - 17 - addr_size * 6 - 1;
for (i = 0; i < count; i++)
{
- unsigned long index = get_reloc_symindex (rels[i].r_info);
+ unsigned long idx = get_reloc_symindex (rels[i].r_info);
ent = print_mips_pltgot_entry (data, mips_pltgot, ent);
printf (" ");
- if (index >= num_dynamic_syms)
- printf (_("<corrupt symbol index: %lu>"), index);
+ if (idx >= num_dynamic_syms)
+ printf (_("<corrupt symbol index: %lu>"), idx);
else
{
- Elf_Internal_Sym * psym = dynamic_symbols + index;
+ Elf_Internal_Sym * psym = dynamic_symbols + idx;
print_vma (psym->st_value, LONG_HEX);
printf (" %-7s %3s ",