This fixes an ancient bug in commit
a3a33af390 (which makes me think
this code has never been used).
* coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Iterate
through reloc_vector using a temp.
}
}
- for (; *reloc_vector != (arelent *) NULL; reloc_vector++)
+ for (arelent **relp = reloc_vector; *relp != NULL; relp++)
{
arelent *rel;
bfd_reloc_status_type r;
char *err;
- rel = *reloc_vector;
+ rel = *relp;
r = bfd_reloc_ok;
switch (rel->howto->type)
{