1998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com>
authorUlrich Drepper <drepper@redhat.com>
Tue, 27 Oct 1998 00:04:05 +0000 (00:04 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 27 Oct 1998 00:04:05 +0000 (00:04 +0000)
commit5c2ad07f36c7f1b80cf8192345efebde0845a1df
treec275e667d1ff204f85dbbe13a6b3b668289e4e93
parente429c89724cebcb21bc6216bb13f9b1c569e3237
1998-10-26 15:58  Ulrich Drepper  <drepper@cygnus.com>

* elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
* elflink.h (elf_collect_hash_codes): New function.  This function is
called for each exported symbol and we compute the ELF hash value for
it.
(compute_bucket_value): New function.  It is called from
size_dynamic_sections to determine the hash table size.  When we are
optimizing a better, but slower, algorithm is used.
(size_dynamic_sections): Call compute_bucket_value.

* elf.c (bfd_elf_hash): Optimize the hash function a bit.
bfd/ChangeLog