diff options
Diffstat (limited to 'bfd/elf-strtab.c')
-rw-r--r-- | bfd/elf-strtab.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bfd/elf-strtab.c b/bfd/elf-strtab.c index 7d2fad4..1526755 100644 --- a/bfd/elf-strtab.c +++ b/bfd/elf-strtab.c @@ -202,12 +202,10 @@ _bfd_elf_strtab_delref (struct elf_strtab_hash *tab, bfd_size_type idx) } void -_bfd_elf_strtab_clear_all_refs (struct elf_strtab_hash *tab) +_bfd_elf_strtab_clear_refs (struct elf_strtab_hash *tab, bfd_size_type idx) { - bfd_size_type idx; - - for (idx = 1; idx < tab->size; ++idx) - tab->array[idx]->refcount = 0; + while (idx < tab->size) + tab->array[idx++]->refcount = 0; } bfd_size_type |