* elflink.c (elf_gc_sweep): Set dynsymcount to correct value.

This commit is contained in:
David Daney 2005-07-31 06:14:15 +00:00
parent 409a795dc3
commit 1b9ee6a2f0
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2005-07-30 David Daney <ddaney@avtrex.com>
* elflink.c (elf_gc_sweep): Set dynsymcount to correct value.
2005-07-29 David Daney <ddaney@avtrex.com>
* elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Ignore _gp_disp

View file

@ -8943,6 +8943,12 @@ elf_gc_sweep (struct bfd_link_info *info, gc_sweep_hook_fn gc_sweep_hook)
elf_link_hash_traverse (elf_hash_table (info), elf_gc_sweep_symbol, &i);
/* There is an unused NULL entry at the head of the table which
we must account for in our count. Unless there weren't any
symbols, which means we'll have no table at all. */
if (i != 0)
++i;
elf_hash_table (info)->dynsymcount = i;
}