2003-05-13 Andrew Haley <aph@redhat.com>
authorAndrew Haley <aph@redhat.com>
Tue, 13 May 2003 15:32:19 +0000 (15:32 +0000)
committerAndrew Haley <aph@redhat.com>
Tue, 13 May 2003 15:32:19 +0000 (15:32 +0000)
        * elf.c (bfd_elf_hash): Mask lower 32 bits of hash.

bfd/ChangeLog
bfd/elf.c

index eaf2b9f..0046a36 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-13  Andrew Haley  <aph@redhat.com>
+
+       * elf.c (bfd_elf_hash): Mask lower 32 bits of hash.
+
 2003-05-13  Alan Modra  <amodra@bigpond.net.au>
            H.J. Lu  <hongjiu.lu@intel.com>
 
index 737f495..fa4416d 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -271,7 +271,7 @@ bfd_elf_hash (namearg)
          h ^= g;
        }
     }
-  return h;
+  return h & 0xffffffff;
 }
 
 /* Read a specified number of bytes at a specified offset in an ELF