summaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2003-05-13 15:32:19 +0000
committerAndrew Haley <aph@redhat.com>2003-05-13 15:32:19 +0000
commitb0660ded2213cb1230bf0a9874eee171a54a38a6 (patch)
tree5374963e58aa290d5c9ca33748abaca48cb848a8 /bfd/elf.c
parent76b9e13030ebaa1698ad378fa070ef9f4ed46f31 (diff)
downloadbinutils-redhat-b0660ded2213cb1230bf0a9874eee171a54a38a6.tar.gz
2003-05-13 Andrew Haley <aph@redhat.com>
* elf.c (bfd_elf_hash): Mask lower 32 bits of hash.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 737f495471..fa4416d0b6 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