From: Andrew Haley Date: Tue, 13 May 2003 15:32:19 +0000 (+0000) Subject: 2003-05-13 Andrew Haley X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=32dfa85d9015feea4a06d423fe58f6eaf841456e;p=binutils-gdb.git 2003-05-13 Andrew Haley * elf.c (bfd_elf_hash): Mask lower 32 bits of hash. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index eaf2b9f4536..0046a366942 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2003-05-13 Andrew Haley + + * elf.c (bfd_elf_hash): Mask lower 32 bits of hash. + 2003-05-13 Alan Modra H.J. Lu diff --git a/bfd/elf.c b/bfd/elf.c index 737f4954711..fa4416d0b60 100644 --- 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