mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-31 22:13:43 +00:00
* elflink.h (compute_bucket_count): Don't allow minsize==0, it
causes division by zero later on.
This commit is contained in:
parent
e1aa8a6373
commit
5825dfc525
@ -1,3 +1,8 @@
|
|||||||
|
Fri Nov 27 17:51:38 1998 Geoff Keating <geoffk@ozemail.com.au>
|
||||||
|
|
||||||
|
* elflink.h (compute_bucket_count): Don't allow minsize==0, it
|
||||||
|
causes division by zero later on.
|
||||||
|
|
||||||
Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
|
Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
|
||||||
|
|
||||||
* elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
|
* elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
|
||||||
|
@ -2259,6 +2259,8 @@ compute_bucket_count (info)
|
|||||||
that the hashing table must at least have NSYMS/4 and at most
|
that the hashing table must at least have NSYMS/4 and at most
|
||||||
2*NSYMS buckets. */
|
2*NSYMS buckets. */
|
||||||
minsize = nsyms / 4;
|
minsize = nsyms / 4;
|
||||||
|
if (minsize == 0)
|
||||||
|
minsize = 1;
|
||||||
best_size = maxsize = nsyms * 2;
|
best_size = maxsize = nsyms * 2;
|
||||||
|
|
||||||
/* Create array where we count the collisions in. We must use bfd_malloc
|
/* Create array where we count the collisions in. We must use bfd_malloc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user