* elflink.h (compute_bucket_count): Don't allow minsize==0, it
authorRichard Henderson <rth@redhat.com>
Fri, 27 Nov 1998 17:03:39 +0000 (17:03 +0000)
committerRichard Henderson <rth@redhat.com>
Fri, 27 Nov 1998 17:03:39 +0000 (17:03 +0000)
        causes division by zero later on.

bfd/ChangeLog
bfd/elflink.h

index e6f40de5b2a79a5c7fbaad2b0041ead7ff6ac899..8e1c3ed9a4b75b04649745c2f6575835b1bde21f 100644 (file)
@@ -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>
 
        * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
index bbd8339826456f2f107dd8757662e9ea9ff346f9..40f45a0f245d0b18f52bf2c0363c1f19e205d457 100644 (file)
@@ -2259,6 +2259,8 @@ compute_bucket_count (info)
         that the hashing table must at least have NSYMS/4 and at most
         2*NSYMS buckets.  */
       minsize = nsyms / 4;
+      if (minsize == 0)
+       minsize = 1;
       best_size = maxsize = nsyms * 2;
 
       /* Create array where we count the collisions in.  We must use bfd_malloc
This page took 0.083231 seconds and 4 git commands to generate.