Revert "Don't call elf_hash on NULL value"

This reverts commit 505329b5b3.
master
Thomas Preud'homme 2013-01-31 13:41:58 +01:00
parent 2f6b8469cc
commit ae33c30b49
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ ST_FUNC int put_elf_sym(Section *s, uplong value, unsigned long size,
if (ELFW(ST_BIND)(info) != STB_LOCAL) {
/* add another hashing entry */
nbuckets = base[0];
h = name ? elf_hash(name) % nbuckets : 0;
h = elf_hash(name) % nbuckets;
*ptr = base[2 + h];
base[2 + h] = sym_index;
base[1]++;