aboutsummaryrefslogtreecommitdiff
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
commit32dfa85d9015feea4a06d423fe58f6eaf841456e (patch)
tree8aef0787fe2b1b6e64930d422f9f3443f742c6a3 /bfd/elf.c
parentead7564810b987841fe57e6f047665c0374bfdac (diff)
downloadgdb-32dfa85d9015feea4a06d423fe58f6eaf841456e.zip
gdb-32dfa85d9015feea4a06d423fe58f6eaf841456e.tar.gz
gdb-32dfa85d9015feea4a06d423fe58f6eaf841456e.tar.bz2
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 737f495..fa4416d 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