From 32dfa85d9015feea4a06d423fe58f6eaf841456e Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Tue, 13 May 2003 15:32:19 +0000 Subject: [PATCH] 2003-05-13 Andrew Haley * elf.c (bfd_elf_hash): Mask lower 32 bits of hash. --- bfd/ChangeLog | 4 ++++ bfd/elf.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.30.2